Skip to content

Commit

Permalink
Merge pull request #55 from tscircuit/snapshot-tests
Browse files Browse the repository at this point in the history
introduce snapshot tests
  • Loading branch information
seveibar authored Sep 9, 2024
2 parents 8a66374 + 3ccc0c4 commit 61a1226
Show file tree
Hide file tree
Showing 7 changed files with 1,090 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,7 @@ dist
.DS_Store
.aider*

*storybook.log
*storybook.log
.vscode
.vercel
*.diff.png
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[test]
preload = ["./tests/fixtures/preload.ts"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@storybook/react-vite": "^8.2.5",
"@storybook/test": "^8.2.5",
"@tscircuit/plop": "^0.0.10",
"bun-match-svg": "^0.0.3",
"esbuild": "^0.20.2",
"storybook": "^8.2.5",
"tsup": "^8.0.2",
Expand Down
11 changes: 11 additions & 0 deletions tests/__snapshots__/silkscreen-with-hole-and-trace.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tests/fixtures/preload.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "bun-match-svg"
Loading

0 comments on commit 61a1226

Please sign in to comment.