Files
text-adventure-game/vitest.config.js.bak

22 lines
692 B
JavaScript
Raw Normal View History

import { defineConfig } from 'vitest/config'
import { fileURLToPath } from 'node:url'
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/**/*.{test,spec}.{js,mjs,cjs}'],
exclude: ['node_modules/', 'dist/', 'unpackage/'],
testTimeout: 10000
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./', import.meta.url)),
'@/components': fileURLToPath(new URL('./components', import.meta.url)),
'@/config': fileURLToPath(new URL('./config', import.meta.url)),
'@/store': fileURLToPath(new URL('./store', import.meta.url)),
'@/utils': fileURLToPath(new URL('./utils', import.meta.url))
}
}
})