forked from bullhorn/novo-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
29 lines (29 loc) · 892 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
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
globalSetup: 'jest-preset-angular/global-setup',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/projects/novo-elements/tsconfig.spec.json',
diagnostics: true,
stringifyContentPathRegex: '\\.html$',
},
CKEDITOR: {}
},
collectCoverage: true,
coverageReporters: ['json', 'lcov', 'text', 'text-summary', 'html'],
coveragePathIgnorePatterns: [
'/node_modules/',
'novo-elements/jest.setup.ts',
'.spec.ts',
'projects/novo-examples',
'index.ts'
],
moduleFileExtensions: ['ts', 'html', 'js', 'json', 'mjs'],
modulePathIgnorePatterns: ['/dist/', '/novo-elements/package.json'],
testEnvironmentOptions: {
url: 'http://localhost',
},
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
testRunner: 'jest-jasmine2',
};