Skip to content

Commit 12db63b

Browse files
henrymercerCopilot
andcommitted
Explain why the config input test compares with a separate object
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 55e4091 commit 12db63b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/config-utils.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ test.serial(
602602
}),
603603
);
604604

605+
// Compare with a separate object rather than `configInput` itself, so that the test catches
606+
// changes made to the input in place.
605607
t.deepEqual(config.originalUserInput, {
606608
name: "my config",
607609
queries: [{ uses: "./foo" }],

0 commit comments

Comments
 (0)