Skip to content

Commit

Permalink
fix(misc): handle tsx files correctly when excluding specs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Mar 15, 2022
1 parent 7ae6d48 commit 4191318
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/workspace/src/core/hasher/hasher.ts
Expand Up @@ -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') ||
Expand Down

0 comments on commit 4191318

Please sign in to comment.