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';