-
Notifications
You must be signed in to change notification settings - Fork 920
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
Test failures when testing with jest-styled-components #8692
Comments
Hi, to have a single instance of a dependency in your application it is recommended to set that dependency as a |
hi @itaymendel, appreciate your help on looking into this. Despite setting it as a |
Description
I'm currently exploring Bit for a project that utilizes styled-components and styled-systems, following a tutorial I found here. In setting up the project, I've integrated jest-styled-components for snapshot testing.
Interestingly, when I execute
bit test
, the snapshots are generated correctly with the extracted style rules. However, upon runningbit build
, the test step fails and the style rules aren't extracted anymore. The console leaves a multiple instances of 'styled-components' warning.I suspect this issue might be related to having multiple instances of styled-components in the project. I've attempted to resolve it by pinning versions and setting overrides to enforce a specific version, but the problem persists.
Any assistance or insights on this matter would be greatly appreciated.
Here is a link to my repo to reproduce the issue
Specifications
-"@teambit/typescript.typescript-compiler": "^2.0.23",
Context and additional information
I tried pinning and adding a override to "teambit.dependencies/dependency-resolver"
The text was updated successfully, but these errors were encountered: