1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-30 15:58:06 +09:00
elk/vitest.config.ts
2024-03-04 16:41:38 +00:00

23 lines
458 B
TypeScript

import { defineVitestConfig } from '@nuxt/test-utils/config'
import { isCI } from 'std-env'
export default defineVitestConfig({
define: {
'process.test': 'true',
},
test: {
reporters: isCI ? ['default', 'hanging-process'] : ['default'],
setupFiles: [
'/tests/setup.ts',
],
environmentOptions: {
nuxt: {
mock: {
indexedDb: true,
intersectionObserver: true,
},
},
},
},
})