From cbb45c8776444e90f26d27e53241cf5a9ba5ec4f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 15 Feb 2026 17:15:49 +0900 Subject: fix(test): define __APP_VERSION__ in vitest config Vite's define config is not inherited by Vitest, causing App component tests to fail with ReferenceError. Co-Authored-By: Claude Opus 4.6 --- vitest.config.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vitest.config.ts') diff --git a/vitest.config.ts b/vitest.config.ts index 924632b..a2bd3b7 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -2,6 +2,9 @@ import react from "@vitejs/plugin-react"; import { defineConfig } from "vitest/config"; export default defineConfig({ + define: { + __APP_VERSION__: JSON.stringify("test"), + }, plugins: [react()], test: { globals: true, -- cgit v1.3-1-g0d28