Files
SubTracker/apps/api/vitest.config.ts
SmileQWQ f950c011c8 fix: resolve shared package in api tests
- point API and Web Vitest directly at the shared package source
- avoid relying on packages/shared/dist existing before tests run in a clean CI checkout
- avoid reading app settings from Prisma when Wallos preview test options provide defaults
- restore latest Docker tags for release images
2026-05-01 19:47:31 +08:00

15 lines
310 B
TypeScript

import { defineConfig } from 'vitest/config'
import path from 'node:path'
export default defineConfig({
resolve: {
alias: {
'@subtracker/shared': path.resolve(__dirname, '../../packages/shared/src/index.ts')
}
},
test: {
include: ['tests/**/*.test.ts'],
environment: 'node'
}
})