mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-27 03:39:43 +03:00
22 lines
458 B
TypeScript
22 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,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|