forked from StarkShang/vite-plugin-chrome-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
28 lines (28 loc) · 833 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
module.exports = {
collectCoverageFrom: [
'src/**/*.ts',
'!src/manifest-input/browser/**/*',
'!src/simple-reloader/client/**/*',
],
coverageReporters: ['json-summary', 'text', 'lcov'],
globals: {
'ts-jest': {
packageJson: 'package.json',
},
},
moduleNameMapper: {
'code .+': '<rootDir>/__fixtures__/bundle-imports-stub.ts',
},
modulePathIgnorePatterns: ['~~.+', '__fixtures__', 'client'],
preset: 'ts-jest',
reporters: ['default'],
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/.*)',
],
testRunner: 'jest-circus/runner',
}