Closed RobWalker closed 3 years ago
FWIW and for future Google hits, it looks like adding a babel.config.js
to the project with the content:
module.exports = {
presets: ['@babel/preset-env'],
}
Seems to have resolved this.
Frontend tooling configuration feels like magic a lot of the time!
I have a mono-repo with linked packages and am trying to run tests on the leaf package which relies on components from the linked package.
The test includes a component:
which produces an error:
Running tests within the editor project itself, including this component works fine.
The
@editor
is defined via themoduleNameMapper
as:How do I tell jest / vue-jest to handle this case correctly?
Thanks.