MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / cleanup

Function cleanup

scripts/integration/js-api.mjs:767–780  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

765}
766
767function cleanup() {
768 try {
769 closeSession();
770 } catch {}
771 if (simulatorUDID && !keepSimulator) {
772 spawnSync("xcrun", ["simctl", "shutdown", simulatorUDID], {
773 stdio: "ignore",
774 });
775 spawnSync("xcrun", ["simctl", "delete", simulatorUDID], {
776 stdio: "ignore",
777 });
778 }
779 fs.rmSync(tempRoot, { recursive: true, force: true });
780}

Callers 1

js-api.mjsFile · 0.70

Calls 1

closeSessionFunction · 0.85

Tested by

no test coverage detected