From ef3ecb19c3e256744fb04099af24c95fc5292793 Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Wed, 11 Dec 2024 13:42:50 +0100 Subject: [PATCH] chore: make compilation succeed with stricter tsconfig settings These tsconfig settings apply in the new moved CLI project. --- test/docker-images.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/docker-images.test.ts b/test/docker-images.test.ts index 7cbd868..8417d20 100644 --- a/test/docker-images.test.ts +++ b/test/docker-images.test.ts @@ -297,10 +297,11 @@ test('logging in twice for two repository domains (containing account id & regio }); mockEcr.on(DescribeRepositoriesCommand).callsFake((input) => { - const url = { + const repos: Record = { repo: '12345.amazonaws.com/repo', repo2: '12346.amazonaws.com/repo2', - }[input.repositoryNames[0]]; + }; + const url = repos[input.repositoryNames[0]]; if (!url) { throw new Error(`Unexpected repo: ${JSON.stringify(input)}`); }