forked from crxjs/chrome-extension-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
32 lines (32 loc) · 832 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
27
28
29
30
31
32
module.exports = {
collectCoverageFrom: [
'src/**/*.ts',
'!src/push-reloader/sw/**/*',
'!src/manifest-input/browser/**/*',
'!src/push-reloader/client/**/*',
'!src/simple-reloader/client/**/*',
],
coverageReporters: ['json-summary', 'text', 'lcov'],
moduleNameMapper: {
'code .+': '<rootDir>/__fixtures__/bundle-imports-stub.ts',
},
modulePathIgnorePatterns: ['~~.+', '__fixtures__', 'client'],
preset: 'ts-jest',
reporters: [
'default',
// 'jest-html-reporters'
],
setupFilesAfterEnv: ['./jest.setup.ts'],
transform: {
// Use Sucrase to convert ES6 modules in JS files
'.(js|jsx)': '@sucrase/jest-plugin',
},
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!lodash-es/.*)',
],
globals: {
'ts-jest': {
packageJson: 'package.json',
},
}
}