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:
Mike Drakoulelis 2020-08-20 12:26:26 +03:00 committed by GitHub
parent b88a975cd3
commit ba6b546845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}, },