forked from dynatrace-oss/barista
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
31 lines (30 loc) · 821 Bytes
/
jest.config.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
const { join } = require('path');
module.exports = {
testMatch: ['**/*.spec.ts'],
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
resolver: '@nrwl/jest/plugins/resolver',
collectCoverage: true,
verbose: false,
reporters: [
'default',
[
'jest-junit',
{
suiteName: 'Library Unit Tests',
outputDirectory: join(__dirname, 'dist', 'test-results'),
outputName: './unit-tests.xml',
classNameTemplate: '{classname}-{title}',
titleTemplate: '{classname}-{title}',
ancestorSeparator: ' › ',
usePathForSuiteName: 'true',
},
],
],
moduleNameMapper: {
// map lodash-es to lodash bundle since jest needs commonjs
'^lodash-es$': 'node_modules/lodash/index.js',
},
};