-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.setup.js
More file actions
19 lines (19 loc) · 752 Bytes
/
jest.setup.js
File metadata and controls
19 lines (19 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module.exports = {
rootDir: '..',
moduleDirectories: ['node_modules', '..'],
restoreMocks: true,
// Coverage
coverageDirectory: 'artifacts/coverage',
collectCoverage: false,
collectCoverageFrom: ['**/*.ts?(x)'],
coverageReporters: ['text', 'lcov', 'text-summary', 'json-summary'],
coveragePathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/public/'],
// Fixes console statements not appearing in watch mode
// https://github.com/facebook/jest/issues/2441
verbose: false,
setupFilesAfterEnv: ['<rootDir>/config/jest/jestSetup.ts'],
testMatch: ['**/*.test.ts?(x)'],
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
testURL: 'http://localhost/#/',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
};