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