File tree Expand file tree Collapse file tree 4 files changed +288
-371
lines changed
@packages/test-environment Expand file tree Collapse file tree 4 files changed +288
-371
lines changed Original file line number Diff line number Diff line change 3131 "dependencies" : {
3232 "@types/tmp" : " ^0.2.5" ,
3333 "tmp" : " ^0.2.1" ,
34- "vitest" : " ^3 .0.0 "
34+ "vitest" : " ^4 .0.18 "
3535 },
3636 "gitHead" : " 71f0194f33943954a8dac1c458be47e5049717cd"
3737}
Original file line number Diff line number Diff line change 11// https://github.com/raszi/node-tmp/issues/229
22
3- import type { Environment } from "vitest" ;
3+ import type { Environment } from "vitest/environments " ;
44import { builtinEnvironments } from "vitest/environments" ;
55import tmp from "tmp" ;
66
@@ -9,6 +9,7 @@ const nodeEnv = builtinEnvironments.node;
99const env : Environment = {
1010 ...nodeEnv ,
1111 name : "commitlint" ,
12+ viteEnvironment : "node" ,
1213 async setup ( global : object , options : Record < string , unknown > ) {
1314 const setupEnv = await nodeEnv . setup ( global , options ) ;
1415 return {
Original file line number Diff line number Diff line change 8787 "@swc/core" : " ^1.10.1" ,
8888 "@typescript-eslint/eslint-plugin" : " ^8.18.0" ,
8989 "@typescript-eslint/parser" : " ^8.18.0" ,
90- "@vitest/coverage-istanbul" : " ^3 .0.0 " ,
90+ "@vitest/coverage-istanbul" : " ^4 .0.18 " ,
9191 "@vitest/eslint-plugin" : " ^1.3.4" ,
9292 "cross-env" : " ^7.0.3" ,
9393 "eslint" : " ^10.0.0" ,
102102 "typescript" : " ^5.2.2" ,
103103 "vitepress" : " ^1.3.4" ,
104104 "vitepress-plugin-tabs" : " ^0.7.0" ,
105- "vitest" : " ^3 .0.0 " ,
105+ "vitest" : " ^4 .0.18 " ,
106106 "vue" : " ^3.5.0"
107107 }
108108}
You can’t perform that action at this time.
0 commit comments