@@ -8,22 +8,16 @@ const UNIT_TESTS = 'test/**.unit.test.ts'
88const BROWSER_TESTS = 'test/**.browser.test.ts'
99const FIXTURES = '**/fixtures/**'
1010
11- const config = defineConfig ( {
12- test : {
13- pool : 'threads' ,
14- setupFiles : [ './setup.ts' ] ,
15- } ,
16- } )
17-
1811export default defineConfig ( {
1912 test : {
2013 reporters : 'verbose' ,
2114 isolate : false ,
15+ setupFiles : [ './setup.ts' ] ,
2216 projects : [
2317 // Test cases for v8-provider
2418 {
19+ extends : true ,
2520 test : {
26- ...config . test ,
2721 name : { label : 'v8' , color : 'green' } ,
2822 env : { COVERAGE_PROVIDER : 'v8' } ,
2923 include : [ GENERIC_TESTS , V8_TESTS ] ,
@@ -39,8 +33,8 @@ export default defineConfig({
3933
4034 // Test cases for istanbul-provider
4135 {
36+ extends : true ,
4237 test : {
43- ...config . test ,
4438 name : { label : 'istanbul' , color : 'magenta' } ,
4539 env : { COVERAGE_PROVIDER : 'istanbul' } ,
4640 include : [ GENERIC_TESTS , ISTANBUL_TESTS ] ,
@@ -56,8 +50,8 @@ export default defineConfig({
5650
5751 // Test cases for custom-provider
5852 {
53+ extends : true ,
5954 test : {
60- ...config . test ,
6155 name : { label : 'custom' , color : 'yellow' } ,
6256 env : { COVERAGE_PROVIDER : 'custom' } ,
6357 include : [ CUSTOM_TESTS ] ,
@@ -67,8 +61,8 @@ export default defineConfig({
6761
6862 // Test cases for browser. Browser mode itself is activated by COVERAGE_BROWSER env var.
6963 {
64+ extends : true ,
7065 test : {
71- ...config . test ,
7266 name : { label : 'istanbul-browser' , color : 'blue' } ,
7367 env : { COVERAGE_PROVIDER : 'istanbul' , COVERAGE_BROWSER : 'true' } ,
7468 testTimeout : 15_000 ,
@@ -98,8 +92,8 @@ export default defineConfig({
9892 } ,
9993 } ,
10094 {
95+ extends : true ,
10196 test : {
102- ...config . test ,
10397 name : { label : 'v8-browser' , color : 'red' } ,
10498 env : { COVERAGE_PROVIDER : 'v8' , COVERAGE_BROWSER : 'true' } ,
10599 testTimeout : 15_000 ,
@@ -131,8 +125,8 @@ export default defineConfig({
131125
132126 // Test cases that aren't provider specific
133127 {
128+ extends : true ,
134129 test : {
135- ...config . test ,
136130 name : { label : 'unit' , color : 'cyan' } ,
137131 include : [ UNIT_TESTS ] ,
138132 typecheck : {
0 commit comments