File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 59
59
}
60
60
},
61
61
"test" : {
62
- "executor" : " @nx/vite:test" ,
63
- "outputs" : [" {workspaceRoot}/coverage/{projectRoot}" ],
62
+ "executor" : " nx:run-commands" ,
64
63
"options" : {
65
- "config " : " packages/runtime/vitest.config.ts "
66
- },
67
- "configurations" : {
68
- "ci " : {
69
- "ci " : true ,
70
- "codeCoverage" : true
71
- }
64
+ "parallel " : false ,
65
+ "commands" : [
66
+ {
67
+ "command " : " vitest run -c packages/runtime/vitest.config.ts " ,
68
+ "forwardAllArgs " : false
69
+ }
70
+ ]
72
71
}
73
72
}
74
73
},
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vitest/config' ;
2
2
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin' ;
3
-
3
+ import path from 'path' ;
4
4
export default defineConfig ( {
5
5
define : {
6
6
__DEV__ : true ,
@@ -11,9 +11,9 @@ export default defineConfig({
11
11
plugins : [ nxViteTsPaths ( ) ] ,
12
12
test : {
13
13
environment : 'jsdom' ,
14
- include : [ '__tests__/*.spec.ts' ] ,
14
+ include : [ path . resolve ( __dirname , '__tests__/*.spec.ts' ) ] ,
15
15
globals : true ,
16
- setupFiles : [ './__tests__/setup.ts' ] ,
16
+ setupFiles : [ path . resolve ( __dirname , './__tests__/setup.ts' ) ] ,
17
17
testTimeout : 10000 ,
18
18
} ,
19
19
} ) ;
You can’t perform that action at this time.
0 commit comments