Skip to content

Allow null border props#282

Merged
seveibar merged 1 commit intomainfrom
codex/allow-cellborder-and-border-to-be-null
Jun 14, 2025
Merged

Allow null border props#282
seveibar merged 1 commit intomainfrom
codex/allow-cellborder-and-border-to-be-null

Conversation

@seveibar
Copy link
Contributor

Summary

  • allow cellBorder and border to be null on <group />
  • update docs and generated files
  • test null border parsing

Testing

  • bun test tests/group.test.ts
  • bun test tests

https://chatgpt.com/codex/tasks/task_b_684db5d31244832e82cc0ba3106ee78a

Comment on lines +31 to +50

test("should allow null for cellBorder", () => {
const raw: BaseGroupProps = {
name: "g",
cellBorder: null,
}

const parsed = baseGroupProps.parse(raw)
expect(parsed.cellBorder).toBeNull()
})

test("should allow null for border", () => {
const raw: BaseGroupProps = {
name: "g",
border: null,
}

const parsed = baseGroupProps.parse(raw)
expect(parsed.border).toBeNull()
})
Copy link
Contributor

Choose a reason for hiding this comment

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

It appears this PR adds multiple test cases to a single test file. Based on the project's conventions, each test file should contain only one test case. Consider splitting these into separate files (e.g., group1.test.ts, group2.test.ts, etc.) to maintain consistency with the project's testing structure.

Spotted by Diamond (based on custom rules)

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

@seveibar seveibar merged commit 30ba16d into main Jun 14, 2025
5 checks passed
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.

1 participant