Skip to content

Commit d281ac8

Browse files
committed
chore(jest): update jest-angular-preset to version 8
1 parent b3b4225 commit d281ac8

5 files changed

Lines changed: 77 additions & 66 deletions

File tree

jest.config.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
module.exports = {
2-
globals: {
3-
'ts-jest': {
4-
stringifyContentPathRegex: '\\.html$',
5-
astTransformers: [
6-
'<rootDir>/node_modules/jest-preset-angular/InlineHtmlStripStylesTransformer'
7-
]
8-
}
9-
},
102
preset: 'jest-preset-angular',
11-
setupFilesAfterEnv: ['<rootDir>/setupJest.ts']
3+
setupFilesAfterEnv: ['<rootDir>../../setupJest.ts']
124
};

package-lock.json

Lines changed: 71 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
"build": "ng build",
88
"format:check": "prettier --list-different 'projects/**/*.ts'",
99
"format:write": "prettier --write 'projects/**/*.ts'",
10+
"test": "npm run test:lib && npm run test:showcase",
1011
"test:lib": "jest --config ./projects/pretty-html-log/jest.config.js",
1112
"test:lib:watch": "jest -o --watch --config ./projects/pretty-html-log/jest.config.js",
1213
"test:showcase": "jest --config ./projects/pretty-html-log-showcase/jest.config.js",
14+
"test:showcase:watch": "jest -o --watch --config ./projects/pretty-html-log-showcase/jest.config.js",
1315
"lint": "ng lint",
1416
"e2e": "ng e2e"
1517
},
@@ -43,7 +45,7 @@
4345
"jasmine-core": "~3.4.0",
4446
"jasmine-spec-reporter": "~4.2.1",
4547
"jest": "^24.9.0",
46-
"jest-preset-angular": "^7.1.1",
48+
"jest-preset-angular": "^8.0.0",
4749
"ng-packagr": "^5.4.0",
4850
"prettier": "^1.18.2",
4951
"pretty-quick": "^2.0.0",
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
const baseConfig = require('../../jest.config.js');
22

33
module.exports = {
4-
...baseConfig,
5-
globals: {
6-
'ts-jest': {
7-
...baseConfig.globals['ts-jest'],
8-
tsConfig: '<rootDir>/projects/pretty-html-log-showcase/tsconfig.spec.json'
9-
}
10-
},
11-
roots: ['<rootDir>/projects/pretty-html-log-showcase/src'],
12-
rootDir: '../../'
4+
...baseConfig
135
};
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
const baseConfig = require('../../jest.config.js');
22

33
module.exports = {
4-
...baseConfig,
5-
globals: {
6-
'ts-jest': {
7-
...baseConfig.globals['ts-jest'],
8-
tsConfig: '<rootDir>/projects/pretty-html-log/tsconfig.spec.json'
9-
}
10-
},
11-
roots: ['<rootDir>/projects/pretty-html-log/src'],
12-
rootDir: '../../'
4+
...baseConfig
135
};

0 commit comments

Comments
 (0)