From d132413b2ae8fbd6a9d31dfe6ca0dd2adb630601 Mon Sep 17 00:00:00 2001 From: Kawa Date: Thu, 26 Mar 2026 10:12:53 +0100 Subject: [PATCH] feat(01-01): configure Vitest for pure-function unit tests - Created vitest.config.ts with environment: 'node' and globals: true - Added passWithNoTests: true so vitest run exits 0 with no test files - test script already present in package.json as "vitest run" --- vitest.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 vitest.config.ts diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..6b7abc5 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + environment: 'node', + globals: true, + passWithNoTests: true, + }, +});