A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!
In apps/mongodb-transaction-sample/project.json there is a reference to apps/mongodb-transaction-sample/jest.config.ts.
But there is no such config. There is jest.config.js, but not .ts.
That's why I have mongodb-transaction-sample test failing:
× nx run mongodb-transaction-sample:test
> NX Can't find a root directory while resolving a config file path.
Provided path to resolve: D:\Projects\github.com\testing-nestjs\apps\mongodb-transaction-sample\jest.config.ts
cwd: D:\Projects\github.com\testing-nestjs
Pass --verbose to see the stacktrace.
Minimum reproduction code and/or steps to reproduce
Is there an existing issue for this?
Describe the bug
In
apps/mongodb-transaction-sample/project.json
there is a reference toapps/mongodb-transaction-sample/jest.config.ts
. But there is no such config. There isjest.config.js
, but not.ts
.That's why I have
mongodb-transaction-sample
test failing:Minimum reproduction code and/or steps to reproduce
pnpm test
Expected behavior
mongodb-transaction-sample
test pass:In which operating systems have you tested?
Additional context
No response