Files
app-ethereum/tests/globalsetup.js
2021-06-15 18:03:30 +02:00

15 lines
306 B
JavaScript

import Zemu from "@zondax/zemu";
const catchExit = async () => {
process.on("SIGINT", () => {
Zemu.stopAllEmuContainers(function () {
process.exit();
});
});
};
module.exports = async () => {
await catchExit();
await Zemu.checkAndPullImage();
await Zemu.stopAllEmuContainers();
};