1a2e9b2cc0
- vitest + jsdom + @testing-library/react setup - mocked wailsjs/go/main/MatrixService + runtime - tests for: LoginScreen, App routing, HomeScreen auto-relogin, RoomList, Composer, EventBubble - pnpm test runs the suite Frontend coverage for matrix_client_pc (flow 0010 PC client).
14 lines
313 B
TypeScript
14 lines
313 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
setupFiles: ["./src/test/setup.ts"],
|
|
css: false,
|
|
include: ["src/__tests__/**/*.test.{ts,tsx}"],
|
|
},
|
|
});
|