snowplow/snowplow-javascript-tracker

View on GitHub
setupTestGlobals.ts

Summary

Maintainability
A
0 mins
Test Coverage
import 'whatwg-fetch';
const nodeCrypto = require('crypto');

// @ts-expect-error
global.crypto = {
  getRandomValues: function (buffer) {
    return nodeCrypto.randomFillSync(buffer);
  },
};