-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
25 lines (18 loc) · 866 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
module.exports = {
// -- Default JestSettings (brisberg/cruft-typescript-pkg)
// An array of glob patterns indicating a set of files for which coverage
// information should be collected
collectCoverageFrom: ['src/**/*.{js,ts}'],
// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: ['/lib/', '\\.d\\.ts$'],
// An array of directory names to be searched recursively up from the
// requiring module's location
moduleDirectories: ['node_modules', 'src'],
// A preset that is used as a base for Jest's configuration
preset: 'ts-jest',
// The test environment that will be used for testing
testEnvironment: '',
// The glob patterns Jest uses to detect test files
testMatch: ['**/*.spec.ts', '!**/node_modules/**', '!**/lib/**'],
// -- Add package specific configurations below here
};