Skip to content

Commit 7c8bfac

Browse files
committed
Fix bug in Arduino CLI debug config remapping tests
Some of the data from the `arduino-cli debug --info` output does not match exactly with the launch.json format required by the IDE's debugger. For this reason, some remapping of the data is required. The remapping code is validated by tests. Previously the tests passed the remapping test data via the argument used for the data from the user's debug_custom.json file. This was incorrect since the remapping is specific to the data from Arduino CLI. No remapping is necessary for the debug_custom.json data since this is directly correlated to launch.json and thus will always use the correct data format for direct inclusion in launch.json.
1 parent 4938c41 commit 7c8bfac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/test/suite/debug.test.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,11 @@ describe('debug', () => {
230230
const actual = await mergeLaunchConfig(
231231
board,
232232
programmer,
233-
{ executable },
234-
[{ configId, [key]: value }]
233+
{
234+
executable,
235+
[key]: value,
236+
},
237+
[]
235238
);
236239
assert.deepStrictEqual(actual, expected);
237240
})

0 commit comments

Comments
 (0)