mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
27 lines
716 B
TypeScript
27 lines
716 B
TypeScript
import path from 'path';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
const e2eDatabaseUrl = process.env.E2E_DATABASE_URL ?? 'postgres://bookorbit:bookorbit@localhost:5432/bookorbit_e2e';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
alias: {
|
|
'@bookorbit/types': path.resolve(__dirname, '../packages/types/src/index.ts'),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
pool: 'forks',
|
|
fileParallelism: false,
|
|
setupFiles: ['test/e2e.setup.ts'],
|
|
include: ['test/**/*.e2e-spec.ts'],
|
|
passWithNoTests: true,
|
|
reporters: process.env.CI ? ['default', 'github-actions'] : ['default'],
|
|
env: {
|
|
DATABASE_URL: e2eDatabaseUrl,
|
|
},
|
|
},
|
|
});
|