Skip to content

Conversation

@seveibar
Copy link
Contributor

Summary

  • allow board props to accept 6- and 8-layer stackups
  • update generated documentation to reflect the expanded layer options
  • add coverage ensuring new layer counts parse correctly

Testing

  • bun test tests/board.test.ts
  • bunx tsc --noEmit
  • bun run format

Codex Task

Comment on lines +31 to +37
test("should allow 6 and 8 layer boards", () => {
const sixLayer: BoardProps = { name: "board", layers: 6 }
const eightLayer: BoardProps = { name: "board", layers: 8 }

expect(boardProps.parse(sixLayer).layers).toBe(6)
expect(boardProps.parse(eightLayer).layers).toBe(8)
})
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 already contains at least one test() function (visible at line 39), and this modification adds another test() function at lines 31-37. To fix this violation, split the tests into multiple numbered files such as board1.test.ts, board2.test.ts, etc., 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.

@seveibar seveibar merged commit d74275d into main Nov 27, 2025
5 checks passed
@seveibar seveibar deleted the codex/add-support-for-6-and-8-layer-boards branch November 27, 2025 17:24
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants