File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ const TIMEOUTS = {
1212 debug : 180000 ,
1313}
1414
15- export default function config ( packagePath : string ) {
15+ interface ConfigOptions {
16+ poolStrategy : 'threads' | 'forks'
17+ }
18+
19+ export default function config ( packagePath : string , { poolStrategy} : ConfigOptions = { poolStrategy : 'threads' } ) {
1620 // always treat environment as one that doesn't support hyperlinks -- otherwise assertions are hard to keep consistent
1721 process . env [ 'FORCE_HYPERLINK' ] = '0'
1822 process . env [ 'FORCE_COLOR' ] = '1'
@@ -38,7 +42,7 @@ export default function config(packagePath: string) {
3842 mockReset : true ,
3943 setupFiles : [ path . join ( __dirname , './vitest/setup.js' ) ] ,
4044 reporters : [ 'verbose' , 'hanging-process' ] ,
41- threads : false ,
45+ pool : poolStrategy ,
4246 coverage : {
4347 provider : 'istanbul' ,
4448 include : [ '**/src/**' ] ,
Original file line number Diff line number Diff line change 11import config from '../../configurations/vite.config'
22
3- export default config ( __dirname )
3+ export default config ( __dirname , { poolStrategy : 'forks' } )
You can’t perform that action at this time.
0 commit comments