Skip to content

Commit d242ccc

Browse files
authored
test: update config and docs (#163)
1 parent f69d118 commit d242ccc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

apps/example-app/app/examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Follow these three steps to run the example tests:
44

55
- clone or download the repository
66
- move into the repository and install the needed dependencies with `npm install`
7-
- use the command `npm run test:app` from within the root of this repository to run the tests
7+
- use the command `npx nx test example-app` from within the root of this repository to run the tests
88

99
The tests in this repository are written with [Jest](https://jestjs.io/), but you can use the test runner of your choice.
1010

jest.config.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ module.exports = {
1414
],
1515
globals: {
1616
'ts-jest': {
17-
tsConfig: '<rootDir>/tsconfig.spec.json',
17+
tsconfig: '<rootDir>/tsconfig.spec.json',
1818
stringifyContentPathRegex: '\\.(html|svg)$',
19-
astTransformers: [
20-
'jest-preset-angular/build/InlineFilesTransformer',
21-
'jest-preset-angular/build/StripStylesTransformer',
22-
],
19+
astTransformers: {
20+
before: [
21+
'jest-preset-angular/build/InlineFilesTransformer',
22+
'jest-preset-angular/build/StripStylesTransformer',
23+
]
24+
},
2325
},
2426
},
2527
};

0 commit comments

Comments
 (0)