[?] Regression
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
I created a blank new project using the Nest CLI. The test command does not seem to work, it gives following error:
Cannot find module '@nestjs/core/errors/exceptions/microservices-package-not-found.exception' from 'testing-module.js'
at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:221:17)
at Object.
Installed versions:
=> Found "@nestjs/[email protected]"
=> Found "@nestjs/[email protected]"
The test command should work on a newly created project, packages should have correct references to existing files.
npm i -g @nest/cli
nest new project
yarn test
N/A
Nest version: 5.3.14
For Tooling issues:
- Node version: v8.11.2
- Platform: Mac
Others:
I downgraded the packages to ~5.2, which seems to work for now
Also experiencing the same issue.
Same here, the suggested workaround (i.e. downgrade) works.
Fixed in the latest patch release (5.3.15). Thanks for reporting!
I am still getting this error running version 5.4.0 - downgrading to 5.3.15 didn't correct the issue for me.
@benjamin-halter make sure you update the 'nestjs/testing' package to 5.4.0 too.
Awesome that was the catch.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@benjamin-halter make sure you update the 'nestjs/testing' package to 5.4.0 too.