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

How to load a custom babel config for vue-jest in Node #528

Open
Jinjiang opened this issue Jan 27, 2023 · 0 comments
Open

How to load a custom babel config for vue-jest in Node #528

Jinjiang opened this issue Jan 27, 2023 · 0 comments

Comments

@Jinjiang
Copy link
Member

The background is I was trying to run some tests with jest in Node (without any shell scripts or rc files). However, I didn't find a way for vue-jest to load a custom babel config. Is there any (special) way to achieve this?

Here is a simple reproduction (vue3) that causes a transform error:
https://github.com/Jinjiang/try-jest/tree/custom-babel-config

And based on the reproduction repo, if you move the config/babel.config.js to the root dir, then the transform would be back to succeed.

Thanks.

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

1 participant