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:
parent
b88a975cd3
commit
ba6b546845
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue