Adjust CI Jest setup (#7471)

This commit is contained in:
Jaco 2022-04-27 17:37:20 +02:00 committed by GitHub
parent ec8edd4ae3
commit 5e4ed13e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ require('./substrate-connect');
const nodeCrypto = require('crypto');
const { configure } = require('@testing-library/dom');
const { fetch } = require('@polkadot/x-fetch/node');
CSS = {
supports () {
@ -19,4 +20,6 @@ window.crypto = {
}
};
global.fetch = fetch;
configure({ asyncUtilTimeout: 10000 });