Skip to content
Snippets Groups Projects
Commit 098c2e8f authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: ensure we only use default vue 3.x build in vitest

We’ll only use vitest for non-compat Vue 3 code. But application code
may still rely on @vue/compat (as specified in the vite config).

If we don’t specify the exact vue package for tests, we’ll run into this
error: https://github.com/vuejs/core/issues/4344.
parent 237f67e6
No related branches found
No related tags found
No related merge requests found
......@@ -6,5 +6,10 @@ const vitestConfig = defineConfig({
environment: 'happy-dom',
include: ['src/**/*.{test,spec}.ts', 'vitest/**/*.{test,spec}.ts'],
},
resolve: {
alias: {
vue: 'vue',
},
},
})
export default mergeConfig(viteConfig, vitestConfig)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment