diff --git a/package.json b/package.json index 4e520b5a..48e84ad2 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "react-cosmos-plugin-vite": "^7.0.0", "react-dom": "^19.1.1", "tsup": "^8.5.0", - "vite": "^7.1.3" + "vite": "^7.1.3", + "vitest": "^1.6.0" }, "peerDependencies": { "typescript": "^5" diff --git a/snapSameNetTraces.test.ts b/snapSameNetTraces.test.ts new file mode 100644 index 00000000..5dd34d55 --- /dev/null +++ b/snapSameNetTraces.test.ts @@ -0,0 +1,12 @@ +import { expect, test } from "bun:test"; + +const testSvg = ` + +`; + +test("svg snapshot example", async () => { + // First run will create the snapshot + // Subsequent runs will compare against the saved snapshot + await expect(testSvg).toMatchSvgSnapshot(import.meta.path); +}); + diff --git a/tests/svg.test.ts b/tests/svg.test.ts index 9251566a..25fbdcb8 100644 --- a/tests/svg.test.ts +++ b/tests/svg.test.ts @@ -1,11 +1,8 @@ -import { expect, test } from "bun:test" +import {describe,it,expect} from "vitest"; -const testSvg = ` - - ` +describe("TraceCleanupSolver",()=>{ + it("runs a basic test",()=>{ + expect(1+1).toBe(2); + }); +}); -test("svg snapshot example", async () => { - // First run will create the snapshot - // Subsequent runs will compare against the saved snapshot - await expect(testSvg).toMatchSvgSnapshot(import.meta.path) -})