From bf96b0df935cfe0cd28bdf7d83b4d43fbf05f0d2 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Wed, 12 Aug 2026 11:39:32 -0500 Subject: [PATCH] Expand test to ensure it does not throw an exception --- src/cli/output-cache.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cli/output-cache.test.ts b/src/cli/output-cache.test.ts index 152f5de5d..b59044feb 100644 --- a/src/cli/output-cache.test.ts +++ b/src/cli/output-cache.test.ts @@ -106,6 +106,11 @@ test.serial( test.serial("getCachedCodeQlVersion ignores non-existent file", async (t) => { await util.withTmpDir(async (tmpDir: string) => { const env = getTestEnv({ [EnvVar.TEMP]: tmpDir }); - t.is(outputCache.getCachedCodeQlVersion(env, "/path/to/codeql"), undefined); + t.notThrows(() => { + t.is( + outputCache.getCachedCodeQlVersion(env, "/path/to/codeql"), + undefined, + ); + }); }); });