Created
August 1, 2020 23:32
-
-
Save trinwin/2b36d1b538e3191ef459f63e93b7396f to your computer and use it in GitHub Desktop.
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
module.exports = { | |
collectCoverageFrom: [ | |
'**/*.{ts,tsx}', | |
'!**/node_modules/**', | |
'!**/.storybook/**', | |
'!**/tests/**', | |
'!**/coverage/**', | |
'!jest.config.js', | |
], | |
coverageThreshold: { | |
global: { | |
branches: 100, | |
functions: 100, | |
lines: 100, | |
statements: 100, | |
}, | |
}, | |
setupFiles: ['<rootDir>/config/setup.js'], | |
preset: 'ts-jest', | |
testPathIgnorePatterns: ['/.next/', '/node_modules/', '/lib/', '/tests/', '/coverage/', '/.storybook/'], | |
testRegex: '(/__test__/.*|\\.(test|spec))\\.(ts|tsx|js)$', | |
testURL: 'http://localhost', | |
testEnvironment: 'jsdom', | |
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], | |
moduleNameMapper: { | |
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js', | |
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': | |
'<rootDir>/__mocks__/fileMock.js', | |
}, | |
transform: { | |
'.(ts|tsx)': 'babel-jest', | |
}, | |
transformIgnorePatterns: ['<rootDir>/node_modules/'], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment