Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions snapSameNetTraces.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { expect, test } from "bun:test";

const testSvg = `<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>`;

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);
});

15 changes: 6 additions & 9 deletions tests/svg.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { expect, test } from "bun:test"
import {describe,it,expect} from "vitest";

const testSvg = `<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>`
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)
})
Loading