From dca7934aec2f40bee5f0a58a9bb042c0fb4f09ce Mon Sep 17 00:00:00 2001 From: Terry Date: Tue, 24 Sep 2019 21:25:28 +0800 Subject: [PATCH] fix(nx): check the correct test builder (#1879) --- .../src/migrations/update-8-5-0/fix-tsconfig-lib-json.ts | 2 +- .../workspace/src/migrations/update-8-5-0/update-8-5-0.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/workspace/src/migrations/update-8-5-0/fix-tsconfig-lib-json.ts b/packages/workspace/src/migrations/update-8-5-0/fix-tsconfig-lib-json.ts index 71d44a260f..3ff2f897a5 100644 --- a/packages/workspace/src/migrations/update-8-5-0/fix-tsconfig-lib-json.ts +++ b/packages/workspace/src/migrations/update-8-5-0/fix-tsconfig-lib-json.ts @@ -12,7 +12,7 @@ export default function() { project.projectType === 'library' && project.architect && project.architect.test && - project.architect.test.builder === '@nrwl/jest:test' && + project.architect.test.builder === '@nrwl/jest:jest' && project.architect.test.options && project.architect.test.options.setupFile === project.sourceRoot + '/test-setup.ts' diff --git a/packages/workspace/src/migrations/update-8-5-0/update-8-5-0.spec.ts b/packages/workspace/src/migrations/update-8-5-0/update-8-5-0.spec.ts index 3fc51ca692..fe42a532ea 100644 --- a/packages/workspace/src/migrations/update-8-5-0/update-8-5-0.spec.ts +++ b/packages/workspace/src/migrations/update-8-5-0/update-8-5-0.spec.ts @@ -9,7 +9,7 @@ describe('Update 8.5.0', () => { let tree: Tree; let schematicRunner: SchematicTestRunner; - const jestBuilder = '@nrwl/jest:test'; + const jestBuilder = '@nrwl/jest:jest'; const nonJestBuilder = 'something-else'; beforeEach(async () => {