New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circular JSON TypeError in @nestjs/axios #11303
Comments
Looks like an error when we're trying to throw an error about an improper test configuration (e.g. a missing provider). Interestingly enough, I only see this error when running multiple test files, not when I run each one individually. |
and looks that's happens in v9.3.10 but not in v9.3.9 ( Not sure why v9.3.9...v9.3.10 |
Just to make sure that I'm on the same page - so this issue doesn't occur on the latest version? @micalevisk |
@kamilmysliwiec it happens on v9.3.10 and v9.3.11 (the latest version as of now). v9.3.9 is fine. |
might be related with this issue on Jest side: jestjs/jest#10577 because it works as expected when using But we must fix that on our side as it works with |
Fixed in 9.3.12 |
Is there an existing issue for this?
Current behavior
Add HttpModule import to module, HttpService to class and receive the following error when running jest test:
Minimum reproduction code
https://github.com/sahellebusch/nestjs-cats-example
Steps to reproduce
npm i
npm run test
Expected behavior
No circular type error.
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
@nestjs/axios
NestJS version
9.3.0
Packages versions
See example repo.
Node.js version
v16.15.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: