-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Jest tests failing/hanging when styled-components plugin is enabled #32
Comments
cc @kwonoj |
Do we have small repro? Need to dig if plugin itself have issues or host have problems. |
So far I've only been running into this in our CI environment when the plugin is enabled, not locally. So unfortunately don't have a quick way to reproduce this. Is there any other info I could provide that would be helpful? |
So this is not 100% reproducible as well as we don't have local repro? Unfortunately that'll make investigation exceptionally difficult. |
Can we confirm if this is same? #42 (comment) |
I have a similar case with this error, I'm using swc + craco + styled-components plugin. The tests run fine on whichever test does not render a component (e.g. unit tests on helpers) but as soon as it reaches a test that renders a component containing some styled-components. Now I can't tell whether it's the template literals that cause the issue or the import. TypeError: _macro.css is not a function
1 | import styled, { css } from 'styled-components/macro';
2 |
> 3 | const activeLink = css` |
Closing as not actionable as there's not enough information to reproduce |
With the styled-components plugin enabled and using
@swc-jest
, I'm seeing my tests hang in our CI pipeline. The failures seem inconsistent, sometimes with no output, sometimes they will just hang until the pipeline times out. WIthout the plugin enabled, tests pass as expected.I updated all of our snapshots which seem to appropriately add the displayName.
These are the only types of output I was able to get from any of the runs while running jest with the
--coverage
flag in CI..swcrc
swc/dependency versions:
Any thoughts on how/why this behavior could be tied to the styled-components plugin?
The text was updated successfully, but these errors were encountered: