From ba6b5468457cf5148fb813162fab1bd617b2edf3 Mon Sep 17 00:00:00 2001 From: Mike Drakoulelis <3009076+Nosfistis@users.noreply.github.com> Date: Thu, 20 Aug 2020 12:26:26 +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 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a122595..f55b949 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "ts" ], "rootDir": "src", - "testRegex": ".spec.ts$", + "testRegex": ".*\\.spec\\.ts$", "transform": { "^.+\\.(t|j)s$": "ts-jest" },