chore(test): add `hanging-process` reporter on CI (#2622)
parent
edcc8741bf
commit
6f20ce5bba
|
@ -1,10 +1,12 @@
|
||||||
import { defineVitestConfig } from '@nuxt/test-utils/config'
|
import { defineVitestConfig } from '@nuxt/test-utils/config'
|
||||||
|
import { isCI } from 'std-env'
|
||||||
|
|
||||||
export default defineVitestConfig({
|
export default defineVitestConfig({
|
||||||
define: {
|
define: {
|
||||||
'process.test': 'true',
|
'process.test': 'true',
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
|
reporters: isCI ? ['default', 'hanging-process'] : ['default'],
|
||||||
setupFiles: [
|
setupFiles: [
|
||||||
'/tests/setup.ts',
|
'/tests/setup.ts',
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue