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
Usage of styled-jsx
with next/jest
prints a warning message
#34492
Comments
Same issue occurs in our code base. |
This should be fixed on |
Indeed it is, thanks! |
It was this release: https://github.com/vercel/next.js/releases/tag/v12.1.6-canary.13 Likely this PR: #36500 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
This issue has already been discussed here: #31152 (comment)
With the arrival of
next@12.1.0
, it seems likenext/jest
is no longer experimental: https://nextjs.org/blog/next-12-1#zero-configuration-jest-plugin so now it might make sense to open individual issues instead of continuing to discuss on "next/jest feedback" discussion thread for easier tracking.The issue is that there is a warning message when testing a component that uses
styled-jsx
withnext/jest
.It makes tests output noisy but not dramatic as it is working.
Expected Behavior
No warning message, tests run normally.
To Reproduce
npx create-next-app@12.1.0 --example with-jest with-jest-app
(using with-jest example)pages/index.tsx
file with:npm run test:ci
ornpm run test
The text was updated successfully, but these errors were encountered: