Jest tests fails when using the babel-preset, even with moduleNameMapper correctly setup #120
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
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.
The text was updated successfully, but these errors were encountered: