Skip to content

test(shared): replace duplicate invariants test with explicit empty-object case - #597

Closed
kicchann with Copilot wants to merge 1 commit into
mainfrom
copilot/sub-pr-594-another-one
Closed

kicchann with Copilot wants to merge 1 commit into
mainfrom
copilot/sub-pr-594-another-one

Conversation

Copilot AI commented Mar 2, 2026 •

Copy link
Copy Markdown

The ProjectSettingsSchema test suite had a duplicate case — a second parse({}) asserting invariants defaults, identical to the first "全フィールドがデフォルト値" test.

Changes

  • project-settings.test.ts: Replaced the duplicate parse({}) call with parse({ invariants: {} }) to cover the distinct scenario of explicitly passing an empty invariants object, verifying all invariant fields still resolve to their true defaults.
it("invariantsに空オブジェクトを渡すと全項目がtrueで補完される", () => {
  const result = ProjectSettingsSchema.parse({ invariants: {} });
  expect(result.invariants.versioning).toBe(true);
  expect(result.invariants.cyclicDependencyCheck).toBe(true);
  expect(result.invariants.statusTransitionRules).toBe(true);
  expect(result.invariants.schemaValidation).toBe(true);
});

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Update ProjectSettingsSchema and settings load implementation test(shared): replace duplicate invariants test with explicit empty-object case Mar 2, 2026
Base automatically changed from feature/spec-000035-project-settings-schema to main March 2, 2026 05:38
@kicchann kicchann closed this Mar 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants