ghost-portal/jest/setupEnv.cjs
Jaco db6b9c80c3
Remove pre-cjs connect mock (#7911)
* Remove per-cjs connect mock

* Adjust
2022-07-26 18:15:55 +03:00

22 lines
434 B
JavaScript

// Copyright 2017-2022 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
require('@testing-library/jest-dom');
const nodeCrypto = require('crypto');
const { configure } = require('@testing-library/dom');
CSS = {
supports () {
return false;
}
}
window.crypto = {
getRandomValues: function (buffer) {
return nodeCrypto.randomFillSync(buffer);
}
};
configure({ asyncUtilTimeout: 10000 });