mirror of
https://github.com/delibae/claude-prism.git
synced 2026-08-28 05:14:59 +00:00
Set up Vitest with jsdom environment and Tauri mocks for frontend testing. Add 44 frontend tests covering Zustand stores (claude-chat, project, proposed-changes, template) and lib utilities (template-registry, file type classification). Add 48 Rust unit tests across zotero (OAuth helpers), slash_commands (markdown parsing), latex (error extraction, SyncTeX parsing), and claude (session dir encoding, message title cleaning). Update README with test commands. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
285 B
TypeScript
14 lines
285 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import path from "node:path";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "src"),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: ["./src/__tests__/mocks/tauri.ts"],
|
|
},
|
|
});
|