1- import type { Config } from ' jest' ;
1+ import type { Config } from " jest" ;
22
33export const baseJestConfig : Config = {
4- preset : ' ts-jest' ,
4+ preset : " ts-jest" ,
55
66 // Automatically clear mock calls, instances, contexts and results before every test
77 clearMocks : true ,
@@ -10,10 +10,10 @@ export const baseJestConfig: Config = {
1010 collectCoverage : true ,
1111
1212 // The directory where Jest should output its coverage files
13- coverageDirectory : ' ./.reports/unit/coverage' ,
13+ coverageDirectory : " ./.reports/unit/coverage" ,
1414
1515 // Indicates which provider should be used to instrument code for coverage
16- coverageProvider : ' babel' ,
16+ coverageProvider : " babel" ,
1717
1818 coverageThreshold : {
1919 global : {
@@ -24,36 +24,36 @@ export const baseJestConfig: Config = {
2424 } ,
2525 } ,
2626
27- coveragePathIgnorePatterns : [ ' /__tests__/' ] ,
28- transform : { ' ^.+\\.ts$' : ' ts-jest' } ,
29- testPathIgnorePatterns : [ ' .build' ] ,
30- testMatch : [ ' **/?(*.)+(spec|test).[jt]s?(x)' ] ,
27+ coveragePathIgnorePatterns : [ " /__tests__/" ] ,
28+ transform : { " ^.+\\.ts$" : " ts-jest" } ,
29+ testPathIgnorePatterns : [ " .build" ] ,
30+ testMatch : [ " **/?(*.)+(spec|test).[jt]s?(x)" ] ,
3131
3232 // Use this configuration option to add custom reporters to Jest
3333 reporters : [
34- ' default' ,
34+ " default" ,
3535 [
36- ' jest-html-reporter' ,
36+ " jest-html-reporter" ,
3737 {
38- pageTitle : ' Test Report' ,
39- outputPath : ' ./.reports/unit/test-report.html' ,
38+ pageTitle : " Test Report" ,
39+ outputPath : " ./.reports/unit/test-report.html" ,
4040 includeFailureMsg : true ,
4141 } ,
4242 ] ,
4343 ] ,
4444
4545 // The test environment that will be used for testing
46- testEnvironment : ' jsdom' ,
46+ testEnvironment : " jsdom" ,
4747} ;
4848
4949const utilsJestConfig = {
5050 ...baseJestConfig ,
5151
52- testEnvironment : ' node' ,
52+ testEnvironment : " node" ,
5353
5454 coveragePathIgnorePatterns : [
5555 ...( baseJestConfig . coveragePathIgnorePatterns ?? [ ] ) ,
56- ' zod-validators.ts' ,
56+ " zod-validators.ts" ,
5757 ] ,
5858} ;
5959
0 commit comments