mirror of
https://github.com/strapi/strapi.git
synced 2026-05-03 16:22:30 +00:00
vitest-config
Shared Vitest configuration for the Strapi monorepo.
Important
This is a private package and is not intended to be used outside of the Strapi monorepo.
Usage
Unit Tests
import { defineConfig, mergeConfig } from 'vitest/config';
import { unitPreset } from 'vitest-config/presets/unit';
export default mergeConfig(
unitPreset,
defineConfig({
test: {
root: __dirname,
},
})
);