forked from twilio-labs/paste
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
26 lines (26 loc) · 871 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
verbose: true,
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['<rootDir>/packages/(?:.+?)/dist/', '<rootDir>/packages/(?:.+?)/.cache/'],
cacheDirectory: '.jest-cache',
coverageDirectory: '.jest-coverage',
coveragePathIgnorePatterns: ['<rootDir>/packages/(?:.+?)/dist/'],
coverageReporters: ['html', 'text'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
transformIgnorePatterns: ['node_modules/'],
resolver: '<rootDir>/.jest/resolver.js',
transform: {
'^.+\\.tsx?$': '<rootDir>/.jest/transform-typescript.js',
'^.+\\.js?$': '<rootDir>/.jest/transform-esm.js',
},
setupFilesAfterEnv: ['<rootDir>/.jest/setupFilesAfterEnv.js'],
snapshotSerializers: ['jest-emotion'],
};