From 3ac40703e228bdaee8fe16706421517a82f797ac Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 14 Jul 2026 20:11:33 +0100 Subject: [PATCH] Add failing test for the issue --- src/config-utils.test.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/config-utils.test.ts b/src/config-utils.test.ts index 5cc62334b..45d5ecfe0 100644 --- a/src/config-utils.test.ts +++ b/src/config-utils.test.ts @@ -2598,3 +2598,25 @@ test.serial("loadUserConfig - loads remote configuration files", async (t) => { ); }); }); + +test.serial( + "loadUserConfig - loads remote configuration files (new format, partial)", + async (t) => { + await withTmpDir(async (tmpDir) => { + const getRemoteConfig = sinon.stub(file, "getRemoteConfig").resolves({}); + + const remoteAddress = "repo:file"; + await callee(configUtils.loadUserConfig) + .withArgs(remoteAddress, tmpDir, SAMPLE_DOTCOM_API_DETAILS, tmpDir) + .passes(t.deepEqual, {}); + + t.true( + getRemoteConfig.calledOnceWithExactly( + sinon.match.any, + remoteAddress, + SAMPLE_DOTCOM_API_DETAILS, + ), + ); + }); + }, +);