From ba4b10cb31af5fecbb2c6434a42c700ea42e6084 Mon Sep 17 00:00:00 2001 From: Benjamin Blackwood Date: Mon, 9 Nov 2020 15:20:17 +1100 Subject: [PATCH 1/2] docs: update run instructions for example-app --- apps/example-app/app/examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From a6d27e048d137f0bc5185e1f89dc08c8fec5f8ca Mon Sep 17 00:00:00 2001 From: Benjamin Blackwood Date: Mon, 9 Nov 2020 15:21:10 +1100 Subject: [PATCH 2/2] build: update deprecated jest config --- jest.config.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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', + ] + }, }, }, };