We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33a0972 commit e869b9aCopy full SHA for e869b9a
client/src/setupTests.ts
@@ -1,6 +1,9 @@
1
import "@testing-library/jest-dom";
2
import { vi } from "vitest";
3
4
+// Configure React to run in development mode for tests
5
+(globalThis as any).IS_REACT_ACT_ENVIRONMENT = true;
6
+
7
// Mock window.matchMedia
8
Object.defineProperty(window, "matchMedia", {
9
writable: true,
client/vitest.config.ts
@@ -1,8 +1,6 @@
-import { defineConfig } from "vite";
-import react from "@vitejs/plugin-react";
+import { defineConfig } from 'vitest/config';
export default defineConfig({
- plugins: [react()],
test: {
globals: true,
environment: "jsdom",
0 commit comments