Skip to content

Commit

Permalink
Modified test files and added preload (tscircuit#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasSarkiz authored Oct 8, 2024
1 parent db3c342 commit 4251434
Show file tree
Hide file tree
Showing 26 changed files with 2 additions and 25 deletions.
2 changes: 1 addition & 1 deletion bunfig.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[test]
preload = ["./tests/fixtures/index.ts"]
preload = ["./tests/fixtures/preload.ts"]
1 change: 0 additions & 1 deletion tests/axial.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/bga.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/cap.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/dfn.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/diode.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/dip.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
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"
1 change: 0 additions & 1 deletion tests/led.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { led } from "../src/fn"
Expand Down
1 change: 0 additions & 1 deletion tests/mlp.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/ms012.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/ms013.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/pinrow.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/qfn.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/qfp.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/quad.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/res.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/sod123.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/soic.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/sot23.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/sot236.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/sot363.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/sot563.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/sot723.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/ssop.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down
1 change: 0 additions & 1 deletion tests/tssop.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "bun-match-svg"
import { test, expect } from "bun:test"
import { convertCircuitJsonToPcbSvg } from "circuit-to-svg"
import { fp } from "../src/footprinter"
Expand Down

0 comments on commit 4251434

Please sign in to comment.