feat: Enhance reservation functionality
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import { loadEnv } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: 'node',
|
||||
include: ['tests/integration/**/*.test.ts'],
|
||||
testTimeout: 30000,
|
||||
typecheck: { tsconfig: './tests/tsconfig.json' },
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'~': new URL('./app', import.meta.url).pathname,
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode ?? 'test', process.cwd(), '')
|
||||
return {
|
||||
test: {
|
||||
environment: 'node',
|
||||
include: ['tests/integration/**/*.test.ts'],
|
||||
testTimeout: 30000,
|
||||
typecheck: { tsconfig: './tests/tsconfig.json' },
|
||||
env,
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'~': new URL('./app', import.meta.url).pathname,
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user