-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (33 loc) · 903 Bytes
/
jest.config.js
File metadata and controls
34 lines (33 loc) · 903 Bytes
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
27
28
29
30
31
32
33
34
module.exports = {
verbose: true,
moduleFileExtensions: [
'js', 'ts', 'tsx'
],
transform : {
"^.+\\.[t|j]sx?$": "babel-jest", // do not change this line
'^.+\\.ts?$': 'ts-jest',
},
setupFilesAfterEnv: ["@testing-library/jest-dom"],
transformIgnorePatterns: [
// https://stackoverflow.com/questions/55794280/jest-fails-with-unexpected-token-on-import-statement
// avoid "Cannot use import statement outside a module" error for ky
'node_modules/(?!(ky)/)',
],
snapshotSerializers: [
],
testMatch: [
'**/test/**/*.(test).(js|ts|tsx)',
],
testPathIgnorePatterns: [
],
collectCoverage: false,
collectCoverageFrom: [
],
coverageDirectory: '<rootDir>/coverage/',
coverageReporters: ['html', 'lcov', 'json', 'text-summary', 'clover'],
reporters: ['default'],
setupFiles: [
'<rootDir>/jest.init.js',
],
testEnvironment: 'jsdom',
};