-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.cjs
27 lines (25 loc) · 968 Bytes
/
jest.config.cjs
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
module.exports = {
verbose: true,
testEnvironment: 'node',
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/lib/bs/',
'/_opam/',
],
collectCoverageFrom: [
'src/**/*.{js,ts}',
'!<rootDir>/node_modules/**',
'<rootDir>/node_modules/bs-excmd/src/**/*.js',
'!<rootDir>/node_modules/bs-excmd/src/parserAutomaton.bs.js',
'!<rootDir>/node_modules/bs-excmd/src/menhirLib.bs.js',
],
coveragePathIgnorePatterns: ['/_opam/'],
transform: {'\\.(js|ts)$': ['babel-jest', {rootMode: 'upward'}]},
// TEMP: Override the default, and force babel-jest to transform `bs-platform`'s broken ESModules
// (until <https://github.com/rescript-lang/rescript-compiler/pull/4902> lands in
// `[email protected]`, at least.)
moduleDirectories: ['node_modules'],
transformIgnorePatterns: [
'node_modules/(?!bs-platform/lib/es6|bs-gen|bs-deriving|bs-sedlex|bs-uchar)',
],
}