summaryrefslogtreecommitdiffhomepage
path: root/vitest.config.ts
blob: 33b83377e5402168e27fbcf84f2d06a8f899caff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { configDefaults, defineConfig } from "vitest/config";

export default defineConfig({
	test: {
		// Everything runs here under vitest EXCEPT bun-only tests, which run via
		// `test:bun` (they use real `Bun.serve` / `bun:sqlite` / `bun:test`):
		//  - `*.bun.test.ts` files (e.g. transport-ws's live WebSocket server test)
		//  - packages whose code imports Bun-only modules (`bun:sqlite`)
		exclude: [
			...configDefaults.exclude,
			"**/*.bun.test.ts",
			"packages/storage-sqlite/**",
			"packages/trace-store/**",
			"packages/observability-collector/**",
		],
	},
});