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

Test not find module vtex.css-handles #43

Open
evertonGil opened this issue Sep 27, 2020 · 2 comments
Open

Test not find module vtex.css-handles #43

evertonGil opened this issue Sep 27, 2020 · 2 comments

Comments

@evertonGil
Copy link

when i has an import from 'vtex.css-handles' in my code, test print this error:
image

How to do a test-tool resolve 'vtex.css-handles' or mock this module?

@EduardoRodriguesF
Copy link

EduardoRodriguesF commented May 28, 2022

Almost two years later but... same problem here. Have you found a solution? I tried updating dependencies and typings but nothing works.

@davipguimaraes
Copy link

Hi,
The solution for this problem it creates a mock to hook useCssHandles.
Like in this test create to VTEX component
react/mocks/vtex.css-handles.ts

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

3 participants