From 7a8e90e860cf06f720163b293272df96e1ac0456 Mon Sep 17 00:00:00 2001 From: Mike Drakoulelis <3009076+Nosfistis@users.noreply.github.com> Date: Thu, 20 Aug 2020 12:24:16 +0300 Subject: [PATCH] fix: stricten unit test file pattern The unit test file pattern strictly follows the .spec.ts file suffix. This rules out .e2e-spec.ts files from unit tests. Relates to nestjs/nest#5293 --- src/lib/application/files/ts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/application/files/ts/package.json b/src/lib/application/files/ts/package.json index be47daf8c..7e68d4f2f 100644 --- a/src/lib/application/files/ts/package.json +++ b/src/lib/application/files/ts/package.json @@ -57,7 +57,7 @@ "ts" ], "rootDir": "src", - "testRegex": ".spec.ts$", + "testRegex": ".*\\.spec\\.ts$", "transform": { "^.+\\.(t|j)s$": "ts-jest" },