Skip to content

Commit 64dd3ab

Browse files
committed
test(cli): enhance realistic VSCode fixture with block comments and trailing commas
1 parent 3ebd002 commit 64dd3ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_merge.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ def test_merge_json_files_empty_existing(tmp_path):
5555
# --- Dimension 3: Real-world Simulation ---
5656

5757
def test_merge_vscode_realistic_scenario(tmp_path):
58-
"""A realistic VSCode settings.json with many existing preferences."""
58+
"""A realistic VSCode settings.json with many existing preferences, comments, and trailing commas."""
5959
existing_file = tmp_path / "vscode_settings.json"
6060
existing_file.write_text("""
6161
{
6262
"editor.fontSize": 12,
63-
"editor.formatOnSave": true,
63+
"editor.formatOnSave": true, /* block comment */
6464
"files.exclude": {
6565
"**/.git": true,
66-
"**/node_modules": true
66+
"**/node_modules": true,
6767
},
6868
"chat.promptFilesRecommendations": {
69-
"existing.tool": true
69+
"existing.tool": true,
7070
} // User comment
7171
}
7272
""")

0 commit comments

Comments
 (0)