Closed Nosfistis closed 4 years ago
Would you like to create a PR for this issue? https://github.com/nestjs/schematics/blob/master/src/lib/application/files/ts/package.json https://github.com/nestjs/typescript-starter/blob/master/package.json and all examples in this repo:)
Sure!
Please check the related PRs:
https://github.com/nestjs/typescript-starter/pull/177 https://github.com/nestjs/schematics/pull/462
Bug Report
Current behavior
Executing
test:cov
also executes the e2e tests in monorepo mode (apps
folder structure project). This is because the.spec.ts$
is not proper regex to capture unit test files (the dots act as any character).Expected behavior
All the unit tests of applications/libraries should be executed. The e2e tests should be part of the
test:e2e
command, or their respectivejest-e2e.json
files.Possible Solution
Placing
.*\.spec\.ts$
works, as the dots now act as literal characters as well.Environment