MCPcopy
hub / github.com/jestjs/jest / end

Function end

packages/jest-worker/src/workers/threadChild.ts:163–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161}
162
163function end(): void {
164 const main = require(file!);
165
166 if (!main.teardown) {
167 exitProcess();
168
169 return;
170 }
171
172 execFunction(main.teardown, main, [], exitProcess, exitProcess);
173}
174
175function exitProcess(): void {
176 // Clean up open handles so the worker ideally exits gracefully

Callers 1

messageListenerFunction · 0.70

Calls 2

exitProcessFunction · 0.70
execFunctionFunction · 0.70

Tested by

no test coverage detected