Closed OR13 closed 1 year ago
I used to support jest but stopped supporting it when we started supporting Deno.
Could you try testEnvironment: 'jsdom'
?
I will give it a shot, thanks for the reply.
@OR13
import crypto from 'crypto'
// ...
(self: any).crypto = (crypto: any).webcrypto;
solve the problem for me
This happens when you try to run the examples in the readme directly with
jest
.I tried creating
jest.config.js
, but it did not resolve the issue.with:
This is likely not a problem with your library, but rather with how
jest
handles node modules / es modules by default.Work around... don't use jest.