Implement the complete collection confirm feature set: - Add new `/collection-confirm` operational page for reviewing and confirming collected order items - Add sidebar navigation entries for Collection Confirm and Invoicing - Add `order_items` to the file proxy API whitelist for attachment access - Install required testing dependencies and configure Vitest test setup - Add full design documentation, test suite, and page overview screenshot - Update package.json and build configuration files
28 lines
773 B
TypeScript
28 lines
773 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
// Native tsconfig path resolution (replaces vite-tsconfig-paths in Vite 5+/Vitest 2+).
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
test: {
|
|
// jsdom covers the few client-helper modules we test (auth-provider, csv export, etc.)
|
|
// Server-side unit tests don't depend on the DOM.
|
|
environment: "jsdom",
|
|
globals: false,
|
|
include: [
|
|
"src/**/*.{test,spec}.{ts,tsx}",
|
|
],
|
|
// Exclude Playwright E2E specs from Vitest.
|
|
exclude: [
|
|
"node_modules/**",
|
|
".next/**",
|
|
"e2e/**",
|
|
"playwright-report/**",
|
|
"test-results/**",
|
|
],
|
|
setupFiles: ["./src/test-setup.ts"],
|
|
},
|
|
});
|