From a70417aae5277d606d1907f5285fa8fadb1449ad Mon Sep 17 00:00:00 2001 From: Salah-Eddine Saakoun Date: Tue, 15 Sep 2026 15:41:20 +0200 Subject: [PATCH] chore(utils): resolve node builtins lint suppressions in hashing tests --- eslint-suppressions.json | 5 ----- packages/utils/src/hashing.test.ts | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/eslint-suppressions.json b/eslint-suppressions.json index 49a28c0feeb..cae3c0343a4 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -2048,11 +2048,6 @@ "count": 1 } }, - "packages/utils/src/hashing.test.ts": { - "n/no-unsupported-features/node-builtins": { - "count": 9 - } - }, "packages/utils/src/hashing.ts": { "no-restricted-syntax": { "count": 3 diff --git a/packages/utils/src/hashing.test.ts b/packages/utils/src/hashing.test.ts index e1cea9b2b74..660eb55c75e 100644 --- a/packages/utils/src/hashing.test.ts +++ b/packages/utils/src/hashing.test.ts @@ -1,3 +1,9 @@ +/* eslint-disable n/no-unsupported-features/node-builtins -- + `hashing.ts` reads `globalThis.crypto`, so the fallback tests have to stub + that exact global. The rule reports it as experimental below Node 23, but it + has been present since Node 19 and these tests only run on the Node version + the repo pins. */ + import * as nobleHashes256 from '@noble/hashes/sha256'; import * as nobleHashes512 from '@noble/hashes/sha512';