@tscircuit/rectdiff 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ import { expect, test } from "bun:test"
2
+ import boardWithCutout from "../test-assets/board-with-cutout.json"
3
+ import { RectDiffSolver } from "../lib/solvers/RectDiffSolver"
4
+ import { getSvgFromGraphicsObject } from "graphics-debug"
5
+
6
+ test("board outline snapshot", async () => {
7
+ const solver = new RectDiffSolver({
8
+ simpleRouteJson: boardWithCutout as any,
9
+ })
10
+
11
+ // Run to completion
12
+ solver.solve()
13
+
14
+ const viz = solver.visualize()
15
+ const svg = getSvgFromGraphicsObject(viz)
16
+
17
+ await expect(svg).toMatchSvgSnapshot(import.meta.path)
18
+ })