diff --git a/apps/example-app/app/examples/README.md b/apps/example-app/app/examples/README.md index 9edf09ab..3c4c5a64 100644 --- a/apps/example-app/app/examples/README.md +++ b/apps/example-app/app/examples/README.md @@ -4,7 +4,7 @@ Follow these three steps to run the example tests: - clone or download the repository - move into the repository and install the needed dependencies with `npm install` -- use the command `npm run test:app` from within the root of this repository to run the tests +- use the command `npx nx test example-app` from within the root of this repository to run the tests The tests in this repository are written with [Jest](https://jestjs.io/), but you can use the test runner of your choice. diff --git a/jest.config.js b/jest.config.js index f9aacd52..ca7c5893 100644 --- a/jest.config.js +++ b/jest.config.js @@ -14,12 +14,14 @@ module.exports = { ], globals: { 'ts-jest': { - tsConfig: '/tsconfig.spec.json', + tsconfig: '/tsconfig.spec.json', stringifyContentPathRegex: '\\.(html|svg)$', - astTransformers: [ - 'jest-preset-angular/build/InlineFilesTransformer', - 'jest-preset-angular/build/StripStylesTransformer', - ], + astTransformers: { + before: [ + 'jest-preset-angular/build/InlineFilesTransformer', + 'jest-preset-angular/build/StripStylesTransformer', + ] + }, }, }, };