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. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| components | ||
| App.tsx | ||
| api.ts | ||
| index.css | ||
| main.tsx | ||
| test-setup.ts | ||
| types.ts | ||
| utils.ts | ||