fix: build frontend and fix tsc errors blocking the build
vite.config.ts used defineConfig from 'vite' which doesn't accept the 'test' key — switch to 'vitest/config' which extends it. Also type the onChange test helper as (knob: KnobConfig) => void instead of the overly broad ReturnType<typeof vi.fn>. Run npm run build to ship the compiled static assets.
This commit is contained in:
6 files changed
+16
-15
No files matched your search
+2
-1
@@ -1,4 +1,5 @@
|
||||
import { defineConfig } from 'vite'
|
||||
/// <reference types="vitest" />
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
// https://vite.dev/config/
|
||||
|
||||
Reference in new issue
Block a user