From 419131838f6958160ec24538916335614c5cc8f3 Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Tue, 15 Mar 2022 13:52:56 -0400 Subject: [PATCH] fix(misc): handle tsx files correctly when excluding specs --- packages/workspace/src/core/hasher/hasher.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/workspace/src/core/hasher/hasher.ts b/packages/workspace/src/core/hasher/hasher.ts index 13bc9e48bc76b..12760b0a4baa1 100644 --- a/packages/workspace/src/core/hasher/hasher.ts +++ b/packages/workspace/src/core/hasher/hasher.ts @@ -426,6 +426,10 @@ class ProjectHasher { private isSpec(file: string) { return ( + file.endsWith('.spec.tsx') || + file.endsWith('.test.tsx') || + file.endsWith('-test.tsx') || + file.endsWith('-spec.tsx') || file.endsWith('.spec.ts') || file.endsWith('.test.ts') || file.endsWith('-test.ts') ||