-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjest.config.js
More file actions
43 lines (40 loc) · 1.16 KB
/
Copy pathjest.config.js
File metadata and controls
43 lines (40 loc) · 1.16 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const semver = require('semver');
const { defaults } = require('jest-config');
const options = {
...defaults,
testMatch: [
'**/test?(s)/**/*.[jt]s?(x)',
'**/__tests__/**/*.[jt]s?(x)',
'**/?(*.)+(spec|test).[tj]s?(x)',
],
testEnvironment: 'node',
testPathIgnorePatterns: [
'/node_modules/',
'locals.js',
'testOne.js',
'testAll.js',
'fake-ezs-server.js',
'fake-server.js',
'testAll.js',
'/data/',
'<rootDir>/packages/xslt',
'<rootDir>/packages/libpostal',
],
collectCoverage: true,
coveragePathIgnorePatterns: ['/node_modules/', '/test/', '/lib/', '/lodex/src/reducers/'],
coverageReporters: ['lcov', 'text-summary'],
transformIgnorePatterns: [
'/node_modules/(?!quick-lru)'
],
testTimeout: 8000,
verbose: true,
silent: false,
testEnvironment: 'node',
setupFiles: ['./jest.setup.js'],
};
if (semver.lt(process.version, '22.0.0')) {
// lmdb package require node 14 (optional chaining)
// better-sqlite3 require node 22
options.testPathIgnorePatterns.push('storage/test');
}
module.exports = options;