chore(tests): fix vitest can't terminate worker (#2644)

This commit is contained in:
Joaquín Sánchez 2024-03-04 17:41:38 +01:00 committed by GitHub
parent edfbe2c3ed
commit 0fa87f71a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 33 additions and 1 deletions

View file

@ -10,5 +10,13 @@ export default defineVitestConfig({
setupFiles: [
'/tests/setup.ts',
],
environmentOptions: {
nuxt: {
mock: {
indexedDb: true,
intersectionObserver: true,
},
},
},
},
})