Files
SnowLuma/packages/protocol/vitest.config.ts
T
TanTan fa9c73363d
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
Publish MCP to npm / Build, test, and publish MCP (push) Waiting to run
Publish SDK to npm / Build, test, and publish SDK (push) Waiting to run
Sync action catalog to docs / sync (push) Waiting to run
Publish UI to npm / Build and publish UI (push) Waiting to run
Build and Release / preflight (push) Waiting to run
SnowLuma v2.4.2 source snapshot
2026-11-13 09:02:00 +08:00

19 lines
693 B
TypeScript

// Vitest config — drives both `pnpm bench` and `pnpm test`.
// Tests live under `tests/`, benchmarks under `bench/`.
import protobufVitePlugin from '@snowluma/proton/vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
// proton's vite plugin inlines `protobuf_encode<T>` / `protobuf_decode<T>`
// call sites at build time. Required for both tests and benchmarks
// to exercise the production codecs. Untransformed calls throw at runtime.
plugins: [protobufVitePlugin()],
test: {
include: ['tests/**/*.test.ts'],
benchmark: {
include: ['bench/**/*.bench.ts'],
},
environment: 'node',
},
});