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