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 tests fails when using the babel-preset, even with moduleNameMapper correctly setup #120

Open
MauricioBonetti opened this issue Dec 17, 2024 · 0 comments
Labels
cat: modules aliasing 🔗 Issue related to modules aliasing cat: performance 🚀 Issue is related to performance cat: testing 🛡 Issue related to testing components enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed

Comments

@MauricioBonetti
Copy link

Describe the enhancement

After adding the babel preset to my babel config for the tests, wyw-in-js is unable to resolve the aliases. I've tried using babel-plugin-module-resolver and it works, but it slows down the tests exponentially.

EvalError: /***/***/src/ui/src/components/loader/elements.tsx: Cannot find module 'src/theme'

Motivation

We want to use wyw-in-js as a replacement for another styling library, however, with this current issue we are unable to continue due to the slow tests.

@MauricioBonetti MauricioBonetti added the enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed label Dec 17, 2024
@github-actions github-actions bot added cat: performance 🚀 Issue is related to performance cat: testing 🛡 Issue related to testing components cat: modules aliasing 🔗 Issue related to modules aliasing labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat: modules aliasing 🔗 Issue related to modules aliasing cat: performance 🚀 Issue is related to performance cat: testing 🛡 Issue related to testing components enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed
Projects
None yet
Development

No branches or pull requests

1 participant