Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/jest.config.js
1028 views
1
const pkg = require('./package.json');
2
3
const workspaces = pkg.workspaces.packages
4
.filter(x => !x.startsWith('replay') && x !== 'website')
5
.map(x => x.replace('/*', ''));
6
7
module.exports = {
8
verbose: false,
9
testMatch: ['**/test/*.test.js'],
10
testEnvironment: 'node',
11
collectCoverage: false,
12
transform: {},
13
collectCoverageFrom: workspaces.map(x => `${x}/**/*.js`),
14
coverageReporters: ['text-summary', 'json'],
15
coveragePathIgnorePatterns: [
16
'node_modules',
17
'<rootDir>/testing/*',
18
'<rootDir>/.*/interfaces/*',
19
'<rootDir>/.*/interfaces/*.[ts|js]',
20
'<rootDir>/.*/bin/*.[ts|js]',
21
'<rootDir>/.*/start.[ts|js]',
22
'<rootDir>/.*/install.[ts|js]',
23
'<rootDir>/.*/install/*.[ts|js]',
24
'<rootDir>/.*/server.[ts|js]',
25
'<rootDir>/.*/test/.*.js',
26
'<rootDir>/.*.d.ts',
27
'<rootDir>/.*.json',
28
],
29
globalTeardown: './jest.teardown.js',
30
globalSetup: './jest.setup.js',
31
setupFilesAfterEnv: ['./jest.setupPerTest.js'],
32
testTimeout: 10e3,
33
reporters: ['default', 'jest-summary-reporter'],
34
roots: workspaces.map(x => `${x}/`),
35
moduleDirectories: ['node_modules', ...workspaces.map(x => `${x}/node_modules`)],
36
};
37
38