Skip to content

Commit

Permalink
Merge pull request #156 from getAlby/fix/tests-node-20-crypto
Browse files Browse the repository at this point in the history
fix: tests failing in node 20
  • Loading branch information
rolznz authored Oct 20, 2024
2 parents 3eaa6a3 + 510ec21 commit 5d3b71b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setupJest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as crypto from "crypto";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
globalThis.crypto = crypto as any;
if (!globalThis.crypto) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
globalThis.crypto = crypto as any;
}

import jestFetchMock from "jest-fetch-mock";

Expand Down

0 comments on commit 5d3b71b

Please sign in to comment.