forked from statoscope/statoscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.preset.js
39 lines (37 loc) · 887 Bytes
/
jest.preset.js
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
/* eslint-env node */
const nxPreset = require('@nx/jest/preset').default;
module.exports = {
...nxPreset,
coverageDirectory: './coverage/',
testEnvironment: 'node',
collectCoverageFrom: [
'packages/*/src/**/*.{js,ts}',
'!**/node_modules/**',
'!**/vendor/**',
'!**/dist/**',
'!**/*.spec.{js,ts}/**',
'!**/*.d.ts',
'!**/.eslintrc.js',
'!**/webpack.config.js',
],
roots: ['<rootDir>'],
setupFilesAfterEnv: ['../../scripts/jest/setup'],
modulePathIgnorePatterns: ['<rootDir>/../../dist/', '<rootDir>/dist/'],
transform: {
'^.+\\.[tj]sx?$': [
'babel-jest',
{
presets: [
[
'@babel/env',
{
exclude: ['@babel/plugin-transform-regenerator'],
modules: 'commonjs',
},
],
'@babel/typescript',
],
},
],
},
};