Skip to content

Conversation

@ShiboSoftwareDev
Copy link
Contributor

This change adds the optional name property to both schematic_voltage_probe and simulation_voltage_probe.
Previously, this property was missing, making it difficult to distinguish between multiple probes.

The name property has been added to the respective Zod schemas and TypeScript interfaces. Tests have also been
updated to ensure the name property is correctly parsed and accessible.

@seveibar seveibar merged commit 571c002 into tscircuit:main Nov 17, 2025
4 checks passed
Comment on lines +48 to +60
test("simulation_voltage_probe parses with name", () => {
const input: SimulationVoltageProbeInput = {
type: "simulation_voltage_probe",
source_net_id: "net1",
name: "My Probe",
}

const result = simulation_voltage_probe.parse(input)
const probe = result as SimulationVoltageProbe

expect(probe.source_net_id).toBe("net1")
expect(probe.name).toBe("My Probe")
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test file violates the rule that a *.test.ts file may have AT MOST one test(...) function. The file now contains 2 test functions after adding the new test on line 48. The file should be split into multiple numbered files, such as simulation_voltage_probe1.test.ts and simulation_voltage_probe2.test.ts, with each file containing only one test function.

Spotted by Graphite Agent (based on custom rule: Custom rule)

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@tscircuitbot
Copy link
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants