mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-22 23:27:18 +01:00
9 lines
280 B
JavaScript
9 lines
280 B
JavaScript
const { createServer } = require('./__wscache__');
|
|
|
|
module.exports = async () => {
|
|
// Always mock blockchain-link server unless it's explicitly required not to.
|
|
if (process.env.TESTS_USE_WS_CACHE === 'true') {
|
|
global.WsCacheServer = await createServer();
|
|
}
|
|
};
|