From c3832a52c3f68c51c8d11f5e23555be31518320c Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 31 Mar 2026 03:42:23 -0700 Subject: [PATCH] Ignore type-checking for test globals. --- test/GLOBALS.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/GLOBALS.mjs b/test/GLOBALS.mjs index f8a284b..5d42308 100644 --- a/test/GLOBALS.mjs +++ b/test/GLOBALS.mjs @@ -1,6 +1,7 @@ //! SPDX-FileCopyrightText: 2025 Chris Duncan //! SPDX-License-Identifier: GPL-3.0-or-later +//@ts-nocheck export { env } from '../env.mjs' if (globalThis.sessionStorage == null) { @@ -270,7 +271,7 @@ export class assert { try { await fn throw new Error(msg ?? 'expected async function to reject') - } catch {} + } catch { } } else { throw new Error(msg ?? 'expected async function') } @@ -306,6 +307,6 @@ export class assert { try { fn() throw new Error(msg ?? `expected function to throw an exception`) - } catch {} + } catch { } } } -- 2.47.3