forked from vercel/vercel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
34 lines (33 loc) · 1.1 KB
/
Copy pathvitest.config.mts
File metadata and controls
34 lines (33 loc) · 1.1 KB
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
27
28
29
30
31
32
33
34
import { defineConfig } from 'vite';
export default defineConfig({
test: {
globals: true,
// Use of process.chdir prohibits usage of the default "threads". https://vitest.dev/config/#forks
pool: 'forks',
testTimeout: 12 * 60 * 1000,
hookTimeout: 12 * 60 * 1000,
include: [
'**/*.{test,spec}.?(c|m)[jt]s?(x)',
// Legacy e2e entrypoints that predate the *.test.* naming convention.
'**/test/test.js',
],
env: {
// Vitest supresses color output when `process.env.CI` is true
// so override that behavior
// Issue: https://github.com/vitest-dev/vitest/issues/2732
// Fix: https://github.com/JoshuaKGoldberg/expect-no-axe-violations/pull/3/files
FORCE_COLOR: '1',
},
hideSkippedTests: true,
exclude: [
// default
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,ava,babel,nyc,cypress,tsup,build}.config.*',
// some artifacts in the fixtures have spec files that we're not using
'**/*.spec.js',
],
},
});