@@ -23,7 +23,7 @@ export default {
23
23
// collectCoverageFrom: undefined,
24
24
25
25
// The directory where Jest should output its coverage files
26
- coverageDirectory : " coverage" ,
26
+ coverageDirectory : ' coverage' ,
27
27
28
28
// An array of regexp pattern strings used to skip coverage collection
29
29
// coveragePathIgnorePatterns: [
@@ -89,8 +89,9 @@ export default {
89
89
90
90
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
91
91
moduleNameMapper : {
92
- "\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$" : "<rootDir>/mocks/fileMock.js" ,
93
- "\\.(css|less)$" : "<rootDir>/mocks/fileMock.js"
92
+ '\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$' :
93
+ '<rootDir>/mocks/fileMock.js' ,
94
+ '\\.(css|less)$' : '<rootDir>/mocks/fileMock.js' ,
94
95
} ,
95
96
96
97
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
@@ -138,7 +139,8 @@ export default {
138
139
// setupFiles: [],
139
140
140
141
// A list of paths to modules that run some code to configure or set up the testing framework before each test
141
- // setupFilesAfterEnv: [],
142
+ //
143
+ setupFilesAfterEnv : [ '<rootDir>/src/setupTests.ts' ] ,
142
144
143
145
// The number of seconds after which a test is considered as slow and reported as such in the results.
144
146
// slowTestThreshold: 5,
@@ -147,7 +149,7 @@ export default {
147
149
// snapshotSerializers: [],
148
150
149
151
// The test environment that will be used for testing
150
- testEnvironment : " jsdom" ,
152
+ testEnvironment : ' jsdom' ,
151
153
152
154
// Options that will be passed to the testEnvironment
153
155
// testEnvironmentOptions: {},
0 commit comments