You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Global setup**: Unit/Int use `['<projectRoot>/global-setup.ts']`, E2E none by default
17
-
18
-
**Include patterns**: Unit `src/**/*.unit.test.*`, Int `src/**/*.int.test.*`, E2E `tests/**/*.e2e.test.*`
19
-
20
-
### Setup files
21
-
22
-
**Automatic inclusion**: Unit (console mocking, cleanup, UI/filesystem mocks, basic matchers), Int (console mocking, cleanup), E2E (cleanup only)
23
-
24
-
**Custom setup files**: ⚠️ Specifying `setupFiles` in overrides will completely replace the defaults. To extend the default list, manually combine them with `setupPresets`:
-`projectKey`: Used for cache and coverage directory naming
33
-
-`projectRoot`: Required path/URL to the project root for resolving all paths
34
-
- Standard Vitest configuration options can be provided in the overrides parameter
8
+
The create functions (`createUnitConfig`, `createIntConfig`, `createE2eConfig`) automatically include appropriate setup files for each test type. See the unit tests for detailed documentation of defaults, coverage settings, and setup file presets.
0 commit comments