Skip to content

Custom blocks for v5 (Vue 3) #354

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

Closed
lmiller1990 opened this issue Jun 14, 2021 · 2 comments
Closed

Custom blocks for v5 (Vue 3) #354

lmiller1990 opened this issue Jun 14, 2021 · 2 comments
Labels

Comments

@lmiller1990
Copy link
Member

It's commented out since no-one has looked into how the new SFC compiler works w/ custom blocks.

// const processCustomBlocks = require('./process-custom-blocks')

We should support custom blocks. Most commonly used one is <i18n>.

@XavierChevalier
Copy link

Yes, it's not supported for vue-jest@5 😏. Any update on this issue ?

@lmiller1990
Copy link
Member Author

Actually yes, added here #364

See: https://github.com/vuejs/vue-jest/releases/tag/v27.0.0-alpha.4

We moved to a new versioning scheme regarding Vue and Jest.

https://github.com/vuejs/vue-jest#installation

If you are using Vue 3 you want @vue/vue3-jest. You you @vue/vue3-jest@26 for Jest 26 and @vue/vue3-jest@27 for Jest 27. I am not sure if the PR has been merged back into the Jest 26 branch yet - master is target Jest 27.

Give one (or both) of those a try. Depending on your Jest version, you might have a problem - if so, consider updating to Jest 27, or open an issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants