From 9d97812466f3e3a87fcc3a403473cd84198b0720 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Wed, 18 Sep 2019 10:29:14 -0400 Subject: [PATCH] Used the correct typing for string array; Updated tests for type change --- packages/jest/src/builders/jest/jest.impl.spec.ts | 4 ++++ packages/jest/src/builders/jest/jest.impl.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/jest/src/builders/jest/jest.impl.spec.ts b/packages/jest/src/builders/jest/jest.impl.spec.ts index 1a9eec599ca553..0124749495f78c 100644 --- a/packages/jest/src/builders/jest/jest.impl.spec.ts +++ b/packages/jest/src/builders/jest/jest.impl.spec.ts @@ -61,6 +61,7 @@ describe('Jest Builder', () => { ] } }), + testPathPattern: [], watch: false }, ['/root/jest.config.js'] @@ -149,6 +150,7 @@ describe('Jest Builder', () => { findRelatedTests: true, runInBand: true, testNamePattern: 'should load', + testPathPattern: [], watch: false }, ['/root/jest.config.js'] @@ -250,6 +252,7 @@ describe('Jest Builder', () => { } }), setupFilesAfterEnv: ['/root/test-setup.ts'], + testPathPattern: [], watch: false }, ['/root/jest.config.js'] @@ -302,6 +305,7 @@ describe('Jest Builder', () => { } }), setupFilesAfterEnv: ['/root/test-setup.ts'], + testPathPattern: [], watch: false }, ['/root/jest.config.js'] diff --git a/packages/jest/src/builders/jest/jest.impl.ts b/packages/jest/src/builders/jest/jest.impl.ts index 4626ceffc4c6e2..2cf5231e5400c3 100644 --- a/packages/jest/src/builders/jest/jest.impl.ts +++ b/packages/jest/src/builders/jest/jest.impl.ts @@ -36,7 +36,7 @@ export interface JestBuilderOptions extends JsonObject { runInBand?: boolean; silent?: boolean; testNamePattern?: string; - testPathPattern?: [string]; + testPathPattern?: string[]; colors?: boolean; reporters?: string[]; verbose?: false;