17 lines
453 B
TypeScript
17 lines
453 B
TypeScript
|
|
import { defineConfig } from 'vite';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Separate from vitest.config.ts on purpose: contract tests make real HTTP
|
||
|
|
* calls to the running docker compose stack and must never be picked up by
|
||
|
|
* a plain `npm test` (which has to stay hermetic and fast, and must pass
|
||
|
|
* with no services running at all).
|
||
|
|
*
|
||
|
|
* npm run test:contract
|
||
|
|
*/
|
||
|
|
export default defineConfig({
|
||
|
|
test: {
|
||
|
|
environment: 'node',
|
||
|
|
include: ['contract/**/*.test.ts'],
|
||
|
|
},
|
||
|
|
});
|