mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-06 07:25:20 +01:00
20 lines
551 B
JavaScript
20 lines
551 B
JavaScript
const { TX_CACHE } = require('./__txcache__');
|
|
|
|
jest.setTimeout(30000);
|
|
|
|
// Always mock blockchain-link worker unless it's explicitly required not to.
|
|
if (process.env.TESTS_USE_WS_CACHE === 'true') {
|
|
// TODO HERE!
|
|
jest.mock('../../connect-data/files/coins.json', () => {
|
|
const json = jest.requireActual('../../connect-data/files/coins.json');
|
|
const { transformCoinsJson } = jest.requireActual('./__wscache__');
|
|
|
|
return transformCoinsJson(json);
|
|
});
|
|
}
|
|
|
|
global.TestUtils = {
|
|
...global.TestUtils,
|
|
TX_CACHE,
|
|
};
|