@@ -6,34 +6,34 @@ module.exports = {
6
6
clearMocks : true ,
7
7
8
8
// Indicates whether the coverage information should be collected while executing the test
9
- collectCoverage : false ,
9
+ collectCoverage : true ,
10
10
11
11
// The directory where Jest should output its coverage files
12
12
coverageDirectory : 'coverage' ,
13
13
14
14
// An array of directory names to be searched recursively up from the requiring module's location
15
- moduleDirectories : [
16
- "node_modules" ,
17
- "<rootDir>/src"
18
- ] ,
15
+ moduleDirectories : [ 'node_modules' , '<rootDir>/src' ] ,
19
16
20
17
// A map from regular expressions to module names that allow to stub out resources with a single module
21
18
moduleNameMapper : {
22
19
'\\.(css|less)$' : '<rootDir>/__mocks__/styleMock.js' ,
23
- "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$" : "<rootDir>/__mocks__/fileMock.js" ,
24
- "@app/(.*)" : '<rootDir>/src/app/$1'
20
+ '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$' :
21
+ '<rootDir>/__mocks__/fileMock.js' ,
22
+ '@app/(.*)' : '<rootDir>/src/app/$1'
25
23
} ,
26
24
27
25
// A preset that is used as a base for Jest's configuration
28
- preset : " ts-jest/presets/js-with-ts" ,
26
+ preset : ' ts-jest/presets/js-with-ts' ,
29
27
30
28
// The path to a module that runs some code to configure or set up the testing framework before each test
31
29
setupFilesAfterEnv : [ '<rootDir>/test-setup.js' ] ,
32
30
33
31
// The test environment that will be used for testing.
34
- testEnvironment : " jsdom" ,
32
+ testEnvironment : ' jsdom' ,
35
33
36
34
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
37
35
snapshotSerializers : [ 'enzyme-to-json/serializer' ] ,
38
36
37
+ // Make tests pass
38
+ transformIgnorePatterns : [ '/node_modules/(?!(react-syntax-highlighter)/)' ]
39
39
} ;
0 commit comments