feat(frontend): add 6 GET methods (batches, batch, claims, remits, providers, activity) + tests

This commit is contained in:
Tyler
2026-06-19 19:41:07 -06:00
parent 585548e046
commit 3ddf962da2
7 changed files with 1923 additions and 63 deletions
+21
View File
@@ -0,0 +1,21 @@
import path from "node:path";
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
test: {
// Node 18+ exposes `Response` / `fetch` globals, so we don't need jsdom.
// VITE_API_BASE_URL must be set so the api module treats itself as
// configured; otherwise every GET would throw notConfiguredError before
// reaching the mocked fetch.
env: {
VITE_API_BASE_URL: "http://test.local",
},
},
});