Skip to content

Commit

Permalink
chore(config): switch to tsconfig for jest-preset.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Oct 23, 2020
1 parent 4b40045 commit 10acb0b
Show file tree
Hide file tree
Showing 4 changed files with 504 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ By Angular CLI defaults you'll have a `src/test.ts` file which will be picked up
module.exports = {
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.spec.json',
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.html$',
astTransformers: {
before: [
Expand Down Expand Up @@ -324,7 +324,7 @@ Override `globals` object in Jest config:
"jest": {
"globals": {
"ts-jest": {
"tsConfig": "<rootDir>/tsconfig.custom.json",
"tsconfig": "<rootDir>/tsconfig.custom.json",
"stringifyContentPathRegex": "\\.html$",
"astTransformers": {
"before": [
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
preset: 'ts-jest',
globals: {
'ts-jest': {
tsConfig: 'tsconfig.spec.json',
tsconfig: 'tsconfig.spec.json',
},
},
testPathIgnorePatterns: ['/e2e/'],
Expand Down
Loading

0 comments on commit 10acb0b

Please sign in to comment.