File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ import * as path from 'node:path'
12import { defineConfig } from 'vitest/config'
2- import packageJson from './package.json'
33import angular from '@analogjs/vite-plugin-angular'
4+ import packageJson from './package.json'
45
5- const angularPlugin = angular ( { tsconfig : 'tsconfig.test.json' , jit : true } )
6+ const tsconfigPath = path . join ( import . meta. dirname , 'tsconfig.test.json' )
7+ const testDirPath = path . join ( import . meta. dirname , 'tests' )
8+ const angularPlugin = angular ( { tsconfig : tsconfigPath , jit : true } )
69
710export default defineConfig ( {
811 plugins : [ angularPlugin ] ,
912 test : {
1013 name : packageJson . name ,
1114 watch : false ,
15+ dir : testDirPath ,
1216 pool : 'threads' ,
1317 environment : 'jsdom' ,
14- setupFiles : [ './tests/ test-setup.ts'] ,
18+ setupFiles : [ path . join ( testDirPath , ' test-setup.ts') ] ,
1519 globals : true ,
1620 reporters : 'default' ,
1721 disableConsoleIntercept : true ,
You can’t perform that action at this time.
0 commit comments