template: new_style_vite_react_shadcn_ts_testing_2026-01-08

This commit is contained in:
Lovable
2025-01-01 00:00:00 +00:00
commit b331aa1a7d
80 changed files with 11601 additions and 0 deletions

7
src/test/example.test.ts Normal file
View File

@@ -0,0 +1,7 @@
import { describe, it, expect } from "vitest";
describe("example", () => {
it("should pass", () => {
expect(true).toBe(true);
});
});

15
src/test/setup.ts Normal file
View File

@@ -0,0 +1,15 @@
import "@testing-library/jest-dom";
Object.defineProperty(window, "matchMedia", {
writable: true,
value: (query: string) => ({
matches: false,
media: query,
onchange: null,
addListener: () => {},
removeListener: () => {},
addEventListener: () => {},
removeEventListener: () => {},
dispatchEvent: () => {},
}),
});