Skip to content

Commit

Permalink
repro for translate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 1, 2024
1 parent e27f911 commit 3bbb238
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"@types/three": "^0.166.0",
"@vitejs/plugin-react": "^4.3.1",
"gh-pages": "^5.0.0",
"jscad-electronics": "^0.0.1",
"jscad-planner": "^0.0.5",
"react": "^18.3.1",
"react-cosmos": "^6.1.1",
"react-cosmos-plugin-vite": "^6.1.1",
Expand Down
17 changes: 17 additions & 0 deletions tests/repros/repro1-translate-bug.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { test, expect } from "bun:test"
import { testRender } from "tests/fixtures/test-render"
import { Footprinter3d } from "jscad-electronics"
import { createJSCADRenderer } from "lib"
import { jscadPlanner } from "jscad-planner"

const { createJSCADRoot } = createJSCADRenderer(jscadPlanner as any)

test("repro1-translate-bug without jscad-planner", () => {
testRender(<Footprinter3d footprint="tssop16" />)
})

test("repro1-translate-bug with jscad-planner", () => {
const jscadPlan: any[] = []
const root = createJSCADRoot(jscadPlan)
root.render(<Footprinter3d footprint="tssop16" />)
})

0 comments on commit 3bbb238

Please sign in to comment.