forked from cube-js/cube
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.base.config.js
More file actions
25 lines (25 loc) · 856 Bytes
/
jest.base.config.js
File metadata and controls
25 lines (25 loc) · 856 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
25
/** @type {import('jest').Config} */
module.exports = {
testEnvironment: 'node',
collectCoverage: true,
coverageDirectory: 'coverage/',
coverageReporters: ['text', 'html', 'lcov'],
coveragePathIgnorePatterns: ['.*\\.d\\.ts'],
collectCoverageFrom: [
'dist/src/**/*.js',
'dist/src/**/*.ts',
],
moduleDirectories: ['node_modules', '<rootDir>/node_modules'],
moduleNameMapper: {
// Force module uuid to resolve with the CJS entry point, because Jest does not support package.json.exports.
// @See https://github.com/uuidjs/uuid/issues/451
'^uuid$': require.resolve('uuid'),
'^yaml$': require.resolve('yaml'),
'^antlr4$': require.resolve('antlr4'),
},
setupFiles: ['../../jest.setup.js'],
snapshotFormat: {
escapeString: true, // To keep existing variant of snapshots
printBasicPrototype: true
}
};