Changeset View
Changeset View
Standalone View
Standalone View
web/jest-setup.js
- This file was added.
// @flow | |||||
import crypto from 'crypto'; | |||||
// crypto.webcrypto was introduced in Node 15.10.0. | |||||
// It is not defined in flow-typed so we need a cast | |||||
ashoat: `flow-typed` doesn't handle Node types... those are in [base Flow](https://github. | |||||
bartekAuthorUnsubmitted Done Inline ActionsGood catch, I'll change this bartek: Good catch, I'll change this | |||||
// eslint-disable-next-line no-undef -- "global is not defined" | |||||
global.crypto = (crypto: any).webcrypto; |
flow-typed doesn't handle Node types... those are in base Flow