1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 14:28:10 +09:00
elk/vitest.config.ts

23 lines
458 B
TypeScript
Raw Normal View History

import { defineVitestConfig } from '@nuxt/test-utils/config'
import { isCI } from 'std-env'
2023-01-29 22:20:37 +09:00
export default defineVitestConfig({
define: {
'process.test': 'true',
},
2024-01-09 17:56:15 +09:00
test: {
reporters: isCI ? ['default', 'hanging-process'] : ['default'],
2024-01-09 17:56:15 +09:00
setupFiles: [
'/tests/setup.ts',
],
environmentOptions: {
nuxt: {
mock: {
indexedDb: true,
intersectionObserver: true,
},
},
},
2024-01-09 17:56:15 +09:00
},
})