2023-12-14 11:45:52 +00:00
|
|
|
import { defineVitestConfig } from '@nuxt/test-utils/config'
|
2024-02-25 14:13:27 +00:00
|
|
|
import { isCI } from 'std-env'
|
2023-01-15 19:09:01 +00:00
|
|
|
|
2023-01-29 13:20:37 +00:00
|
|
|
export default defineVitestConfig({
|
2023-01-15 19:09:01 +00:00
|
|
|
define: {
|
|
|
|
'process.test': 'true',
|
|
|
|
},
|
2024-01-09 08:56:15 +00:00
|
|
|
test: {
|
2024-02-25 14:13:27 +00:00
|
|
|
reporters: isCI ? ['default', 'hanging-process'] : ['default'],
|
2024-01-09 08:56:15 +00:00
|
|
|
setupFiles: [
|
|
|
|
'/tests/setup.ts',
|
|
|
|
],
|
2024-03-04 16:41:38 +00:00
|
|
|
environmentOptions: {
|
|
|
|
nuxt: {
|
|
|
|
mock: {
|
|
|
|
indexedDb: true,
|
|
|
|
intersectionObserver: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-01-09 08:56:15 +00:00
|
|
|
},
|
2023-01-15 19:09:01 +00:00
|
|
|
})
|