-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syncing up to 467560a3b0dcccfa7c7bf4302c939222366f9e77
Co-authored-by: Joey Greco <[email protected]>
- Loading branch information
1 parent
9631f7b
commit 2d3b4ec
Showing
2 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
module.exports = { | ||
roots : [ '<rootDir>/' ], | ||
collectCoverageFrom : [ 'src/**/*.ts', '!src/gen/**' ], | ||
collectCoverage : true, | ||
coverageProvider : 'v8', // jest sometimes returns exit code 1 on coverage | ||
// after codegen files | ||
coveragePathIgnorePatterns : [ 'local.test.ts' ], | ||
setupFilesAfterEnv : [ '<rootDir>/.jest/setupEnv.ts' ], | ||
transform : {'^.+\\.(png|ts|tsx)$' : 'ts-jest'}, | ||
testRegex : '(/__tests__/.*|(\\.)(test|spec))\\.tsx?$', | ||
moduleFileExtensions : [ 'ts', 'tsx', 'js', 'jsx', 'json', 'node', 'css' ], | ||
moduleDirectories : [ 'node_modules', 'src' ], | ||
transformIgnorePatterns : [ '<rootDir>/node_modules/' ], | ||
moduleNameMapper : { | ||
'\\.(css|less)$' : '<rootDir>/test/__mocks__/styleMock.js', | ||
'\\.svg$' : '<rootDir>/test/__mocks__/svgMock.js', | ||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$' : '<rootDir>/test/__mocks__/fileMock.js' | ||
roots: ['<rootDir>/'], | ||
collectCoverageFrom: ['src/**/*.ts', '!src/gen/**'], | ||
collectCoverage: true, | ||
coverageProvider: 'v8', // jest sometimes returns exit code 1 on coverage | ||
// after codegen files | ||
coveragePathIgnorePatterns: ['local.test.ts'], | ||
setupFilesAfterEnv: ['<rootDir>/.jest/setupEnv.ts'], | ||
transform: { '^.+\\.(png|ts|tsx)$': 'ts-jest' }, | ||
testRegex: '(/__tests__/.*|(\\.)(test|spec))\\.tsx?$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node', 'css'], | ||
moduleDirectories: ['node_modules', 'src'], | ||
transformIgnorePatterns: ['<rootDir>/node_modules/'], | ||
moduleNameMapper: { | ||
'\\.(css|less)$': '<rootDir>/test/__mocks__/styleMock.js', | ||
'\\.svg$': '<rootDir>/test/__mocks__/svgMock.js', | ||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/test/__mocks__/fileMock.js' | ||
}, | ||
passWithNoTests : true, | ||
testPathIgnorePatterns : [ 'local.test.ts', 'test/apis' ] | ||
passWithNoTests: true, | ||
testPathIgnorePatterns: ['local.test.ts', 'test/apis'], | ||
// https://jestjs.io/docs/configuration#testtimeout-number | ||
// default timeout of test in milliseconds | ||
// 10 seconds by default, can overwrite in test file | ||
testTimeout: 10000 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters