File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import { resolve } from 'node:path'
2- import { defineConfig } from 'vitest/config'
2+ import { defaultExclude , defineConfig } from 'vitest/config'
33
44const timeout = process . env . PWDEBUG ? Infinity : process . env . CI ? 20_000 : 5_000
55
6+ const isBelowNode20 = + process . versions . node . split ( '.' ) [ 0 ] < 20
7+
68export default defineConfig ( {
79 resolve : {
810 alias : {
@@ -12,6 +14,9 @@ export default defineConfig({
1214 test : {
1315 pool : 'forks' ,
1416 include : [ './playground/**/*.spec.[tj]s' ] ,
17+ exclude : isBelowNode20
18+ ? [ '__tests__/oxc' , ...defaultExclude ] // plugin-oxc only supports node >= 20
19+ : defaultExclude ,
1520 setupFiles : [ './playground/vitestSetup.ts' ] ,
1621 globalSetup : [ './playground/vitestGlobalSetup.ts' ] ,
1722 testTimeout : timeout ,
You can’t perform that action at this time.
0 commit comments