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
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,22 @@
"@react-hook/resize-observer": "^2.0.2",
"@tscircuit/circuit-json-util": "^0.0.64",
"@tscircuit/math-utils": "^0.0.19",
"@tscircuit/schematic-viewer": "^2.0.26",
"@tscircuit/schematic-viewer": "^2.0.59",
"@types/bun": "latest",
"bpc-graph": "^0.0.66",
"calculate-packing": "^0.0.31",
"calculate-packing": "0.0.31",
"circuit-json": "^0.0.226",
"graphics-debug": "^0.0.64",
"circuit-to-svg": "^0.0.340",
"graphics-debug": "^0.0.89",
"react-cosmos": "^7.0.0",
"react-cosmos-plugin-vite": "^7.0.0",
"tscircuit": "^0.0.593",
"tsup": "^8.5.0"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@tscircuit/solver-utils": "^0.0.19"
}
}
Binary file added test-results.txt
Binary file not shown.
87 changes: 87 additions & 0 deletions test-results2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
bun test v1.3.11 (af24e281)

tests\ChipPartitionsSolver.test.ts:
(pass) ChipPartitionsSolver creates single partition for connected components [15.00ms]
(pass) ChipPartitionsSolver creates separate partitions for disconnected components
(pass) ChipPartitionsSolver handles complex connected graph
(pass) ChipPartitionsSolver visualization contains partition components

tests\test01.test.ts:
(pass) ...

tests\getInputProblemFromCircuitJsonSchematic\getInputProblemFromCircuitJsonSchematic01.test.tsx:
(pass) getInputProblemFromCircuitJsonSchematic01 [328.00ms]

tests\IdentifyDecouplingCapsSolver\IdentifyDecouplingCapsSolver06.test.ts:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'convertCircuitJsonToSchematicSimulationSvg' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\circuit-to-svg\dist\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver01.test.ts:
(pass) LayoutPipelineSolver01 visualization example

tests\LayoutPipelineSolver\LayoutPipelineSolver02.test.ts:
(pass) LayoutPipelineSolver02 runs pipeline phases for ExampleCircuit02 [250.00ms]
(skip) LayoutPipelineSolver02 step-by-step execution
(pass) LayoutPipelineSolver02 should complete simplified pipeline without errors [94.00ms]
(pass) LayoutPipelineSolver02 complete pipeline execution [63.00ms]
(pass) LayoutPipelineSolver02 overlap detection functionality [31.00ms]

tests\LayoutPipelineSolver\LayoutPipelineSolver03.test.tsx:
capacitor: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)
(pass) LayoutPipelineSolver03 - chip with multiple capacitors [250.00ms]

tests\LayoutPipelineSolver\LayoutPipelineSolver04.test.ts:
(pass) LayoutPipelineSolver04 - ExampleCircuit04 simplified pipeline execution [78.00ms]

tests\LayoutPipelineSolver\RP2040Circuit.test.ts:
Each child in a list should have a unique "key" prop.

Check the render method of `board`. It was passed a child from RP2040Circuit. See https://react.dev/link/warning-keys for more information.
Warning: 4 chip overlaps detected in final layout: U3 overlaps C14 (area: 0.0047), C10 overlaps C7 (area: 0.0838), C10 overlaps C12 (area: 0.3638), C19 overlaps C15 (area: 0.1200)
Chip U3: 57 pins, size: 3x8.400000000000004
Chip C12: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C14: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C8: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C13: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C15: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C19: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C18: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C7: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C9: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C10: 2 pins, size: 0.5291665999999999x1.0583333000000001
Chip C11: 2 pins, size: 0.5291665999999999x1.0583333000000001
InputProblem created with 12 chips
Total pins: 79
Nets: V3_3, V1_1, USB_VDD, USB_N, USB_P, GND
(pass) RP2040Circuit InputProblem conversion [1094.00ms]
Warning: 4 chip overlaps detected in final layout: U3 overlaps C14 (area: 0.0047), C10 overlaps C7 (area: 0.0838), C10 overlaps C12 (area: 0.3638), C19 overlaps C15 (area: 0.1200)
false true null
(pass) RP2040Circuit complete pipeline execution [1609.00ms]

tests\PartitionPackingSolver\PartitionPackingSolver01.test.ts:
Using static input with 1 partition(s)
Initial state:
- Solved: false
- Failed: false
- Error: null
\nStep 1:
- Solved: true
- Failed: false
- Error: null
(pass) PartitionPackingSolver works with single packed partition
(pass) PartitionPackingSolver works with empty partitions

17 pass
1 skip
1 fail
1 error
2 snapshots, 528 expect() calls
Ran 19 tests across 10 files. [4.73s]
73 changes: 73 additions & 0 deletions test-results3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
bun test v1.3.11 (af24e281)

tests\ChipPartitionsSolver.test.ts:

# Unhandled error between tests
-------------------------------
error: Cannot find module '@tscircuit/solver-utils' from 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\calculate-packing\dist\index.js'
-------------------------------


tests\test01.test.ts:
(pass) ...

tests\getInputProblemFromCircuitJsonSchematic\getInputProblemFromCircuitJsonSchematic01.test.tsx:

# Unhandled error between tests
-------------------------------
-------------------------------


tests\IdentifyDecouplingCapsSolver\IdentifyDecouplingCapsSolver06.test.ts:

# Unhandled error between tests
-------------------------------
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver01.test.ts:

# Unhandled error between tests
-------------------------------
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver02.test.ts:

# Unhandled error between tests
-------------------------------
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver03.test.tsx:

# Unhandled error between tests
-------------------------------
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver04.test.ts:

# Unhandled error between tests
-------------------------------
-------------------------------


tests\LayoutPipelineSolver\RP2040Circuit.test.ts:

# Unhandled error between tests
-------------------------------
-------------------------------


tests\PartitionPackingSolver\PartitionPackingSolver01.test.ts:

# Unhandled error between tests
-------------------------------
-------------------------------


1 pass
9 fail
9 errors
Ran 10 tests across 10 files. [750.00ms]
117 changes: 117 additions & 0 deletions test-results4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
bun test v1.3.11 (af24e281)

tests\ChipPartitionsSolver.test.ts:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\test01.test.ts:
(pass) ...

tests\getInputProblemFromCircuitJsonSchematic\getInputProblemFromCircuitJsonSchematic01.test.tsx:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\IdentifyDecouplingCapsSolver\IdentifyDecouplingCapsSolver06.test.ts:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver01.test.ts:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver02.test.ts:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver03.test.tsx:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\LayoutPipelineSolver\LayoutPipelineSolver04.test.ts:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\LayoutPipelineSolver\RP2040Circuit.test.ts:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


tests\PartitionPackingSolver\PartitionPackingSolver01.test.ts:

# Unhandled error between tests
-------------------------------
1 | })
2 | {
^
SyntaxError: Export named 'setStepOfAllObjects' not found in module 'C:\ai-dev-ops\task_02_tscircuit_matchpack\node_modules\graphics-debug\dist\lib\index.js'.
at loadAndEvaluateModule (2:1)
-------------------------------


1 pass
9 fail
9 errors
Ran 10 tests across 10 files. [762.00ms]
Loading
Loading