Fix test errors
This commit is contained in:
parent
eede2f5aff
commit
a3b4076f63
1 changed files with 13 additions and 0 deletions
|
|
@ -121,6 +121,19 @@ export default defineConfig(async ({ mode, command }) => {
|
||||||
cacheLocation: resolve(projectRoot, 'node_modules/.cache/stylelintcache')
|
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: {
|
css: {
|
||||||
devSourcemap: true
|
devSourcemap: true
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue