MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / cleanup

Function cleanup

scripts/integration/webrtc.mjs:400–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

398}
399
400function cleanup() {
401 if (serverProcess && serverProcess.exitCode === null) {
402 serverProcess.kill();
403 }
404 if (simulatorUDID) {
405 spawnSync("xcrun", ["simctl", "shutdown", simulatorUDID], {
406 stdio: "ignore",
407 });
408 spawnSync("xcrun", ["simctl", "delete", simulatorUDID], {
409 stdio: "ignore",
410 });
411 }
412 fs.rmSync(tempRoot, { recursive: true, force: true });
413}

Callers 1

webrtc.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected