Skip to content
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 Error Cannot find module classname-variants/react #9

Open
gabrielmlinassi opened this issue Jun 21, 2023 · 1 comment
Open

Jest Error Cannot find module classname-variants/react #9

gabrielmlinassi opened this issue Jun 21, 2023 · 1 comment

Comments

@gabrielmlinassi
Copy link

gabrielmlinassi commented Jun 21, 2023

Hi, do I need to mock this library? I get a Jest error Cannot find module classname-variants/react.

@gabrielmlinassi gabrielmlinassi changed the title Jest Error Cannot find module classname-variants/react Jest Error Cannot find module classname-variants/react Jun 21, 2023
@fgnass
Copy link
Owner

fgnass commented Jun 23, 2023

The package uses package.json exports for the /react subpath. I don't use Jest anymore, but a quick Google search brought up this issue – maybe that thread provides some useful hints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants