-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
23 lines (23 loc) · 902 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
module.exports = {
moduleFileExtensions: ['js', 'ts', 'tsx'],
testMatch: ['<rootDir>/test/unit/specs/**/*.ts', '<rootDir>/test/unit/specs/**/*.tsx'],
transform: { '^.+\\.(t|j)sx?$': '@swc/jest' },
transformIgnorePatterns: ['/node_modules/(?!firebase|@firebase)'],
moduleNameMapper: { '^@/(.*)$': '<rootDir>/src/$1' },
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/src/components/**/*.tsx',
'<rootDir>/src/containers/**/*.tsx',
'<rootDir>/src/modules/**/*.ts',
'<rootDir>/src/sagas/**/*.ts'
],
coveragePathIgnorePatterns: [
// FirebaseUI for React is not supported by Jest(jsdom)
// https://github.com/firebase/firebaseui-web/issues/636
'<rootDir>/src/containers/Login.tsx',
'<rootDir>/src/components/FirebaseAuth.tsx'
],
coverageDirectory: '<rootDir>/test/unit/coverage',
coverageReporters: ['html', 'text-summary'],
verbose: true
}