mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 21:49:05 +00:00
- Setup E2E package under packages/e2e - Use testcontainers to spin up postgres and temporal dev server - Overwrite activities in global registry to mock AI model output - Track temporal workers and expose shutdownWorkers() method for clean shutdown - Integrate test:e2e:workflow into root package.json and GitHub actions CI
18 lines
447 B
TypeScript
18 lines
447 B
TypeScript
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths()],
|
|
test: {
|
|
globalSetup: './packages/e2e/workflow/test-global-setup.ts',
|
|
globals: false,
|
|
pool: 'forks',
|
|
include: ['packages/e2e/workflow/**/*.test.ts'],
|
|
server: {
|
|
deps: {
|
|
inline: ['zod', '@shumai/workflow-core', '@temporalio/activity'],
|
|
},
|
|
},
|
|
},
|
|
})
|