Skip to content
Snippets Groups Projects
Verified Commit a3b4076f authored by tusooa's avatar tusooa :zap:
Browse files

Fix test errors

parent eede2f5a
No related branches found
No related tags found
1 merge request!2052Use vite to replace webpack
......@@ -121,6 +121,19 @@ export default defineConfig(async ({ mode, command }) => {
cacheLocation: resolve(projectRoot, 'node_modules/.cache/stylelintcache')
})
],
optimizeDeps: {
// For unknown reasons, during vitest, vite will re-optimize the following
// deps, causing the test to reload, so add them here so that it will not
// reload during tests
include: [
'custom-event-polyfill',
'vue-i18n',
'@ungap/event-target',
'lodash.merge',
'body-scroll-lock',
'@kazvmoe-infra/pinch-zoom-element'
]
},
css: {
devSourcemap: true
},
......
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