jmcdo29 / testing-nestjs

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!
MIT License
2.88k stars 379 forks source link

mongodb-transaction-sample/project.json incorrect jest.config reference #2010

Closed victor-letunovsky closed 1 week ago

victor-letunovsky commented 1 month ago

Is there an existing issue for this?

Describe the bug

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

pnpm test

Expected behavior

mongodb-transaction-sample test pass:

√  nx run mongodb-transaction-sample:test (27s)

In which operating systems have you tested?

Additional context

No response

jmcdo29 commented 1 week ago

2011