-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (24 loc) · 771 Bytes
/
Copy pathjest.config.js
File metadata and controls
24 lines (24 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export default {
testEnvironment: 'node',
transform: {},
moduleFileExtensions: ['js', 'mjs'],
testMatch: [
'**/test/**/*.test.js',
'**/test/**/*.test.mjs'
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
collectCoverageFrom: [
'src/**/*.mjs',
'!src/**/*.test.mjs'
],
setupFilesAfterEnv: ['./test/setup.js'],
// <rootDir>-anchored so running jest FROM a worktree still finds its own tests
// (a bare '/.worktrees/' pattern matches the worktree's own absolute path)
testPathIgnorePatterns: ['/node_modules/', '/_archive/', '/test/_archive/', '<rootDir>/.worktrees/'],
verbose: true,
reporters: [
'default',
['./test/helpers/markdown-reporter.js', { outputFile: 'test-results.md' }]
]
};