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
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@
|
|||||||
"ts"
|
"ts"
|
||||||
],
|
],
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"testRegex": ".spec.ts$",
|
"testRegex": ".*\\.spec\\.ts$",
|
||||||
"transform": {
|
"transform": {
|
||||||
"^.+\\.(t|j)s$": "ts-jest"
|
"^.+\\.(t|j)s$": "ts-jest"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user