diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-15 17:15:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-15 17:15:49 +0900 |
| commit | cbb45c8776444e90f26d27e53241cf5a9ba5ec4f (patch) | |
| tree | 9f58c2530a60a12573781c083de41c0f4706d2a7 | |
| parent | 086ad98480d8898b610965bc23ef934173f9fdfc (diff) | |
| download | kioku-cbb45c8776444e90f26d27e53241cf5a9ba5ec4f.tar.gz kioku-cbb45c8776444e90f26d27e53241cf5a9ba5ec4f.tar.zst kioku-cbb45c8776444e90f26d27e53241cf5a9ba5ec4f.zip | |
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 <noreply@anthropic.com>
| -rw-r--r-- | vitest.config.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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, |
