forked from readmeio/json-schema-ref-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
26 lines (22 loc) · 833 Bytes
/
vitest.config.mts
File metadata and controls
26 lines (22 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// eslint-disable-next-line import/no-extraneous-dependencies
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
exclude: [
'**/dist/**',
'**/node_modules/**',
// Vitest doesn't support directories with special characters in them.
'**/special-characters/**',
// This test is better served by native TS typings. Ignoring until we have those.
'**/typescript-definition.spec.ts',
],
/**
* We can't run tests with `threads` on because we use `process.chdir()` in some tests and
* that isn't available in worker threads, and it's way too much work to mock out an entire
* filesystem and `fs` calls for the tests that use it.
*
* @see {@link https://github.com/vitest-dev/vitest/issues/566}
*/
pool: 'forks',
},
});