1 |
|
2 |
|
3 | module.exports = {
|
4 | // Provides nice test output of what's being run
|
5 | verbose: true,
|
6 |
|
7 | // It's a Node project 😇
|
8 | testEnvironment: 'node',
|
9 |
|
10 | // OS notifications of test results is an opt in feature, enable by setting
|
11 | // a truthy env value in your shell environment
|
12 | notify: Boolean(process.env.ENABLE_JEST_NOTIFICATIONS),
|
13 |
|
14 | // Ignore Cypress acceptance tests
|
15 | testPathIgnorePatterns: ['/node_modules/', 'cypress'],
|
16 |
|
17 | // Collect test coverage of source files (excluding stories), report
|
18 | // text-summary for devs and lcov for reporting to Code Climate in CI/CD envs.
|
19 | collectCoverage: true,
|
20 | coverageReporters: ['text-summary', 'lcov'],
|
21 | collectCoverageFrom: ['src/**/*.js'],
|
22 | }
|