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

Function end

packages/jest-worker/src/workers/processChild.ts:157–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157function end(): void {
158 const main = require(file!);
159
160 if (!main.teardown) {
161 exitProcess();
162
163 return;
164 }
165
166 execFunction(main.teardown, main, [], exitProcess, exitProcess);
167}
168
169function exitProcess(): void {
170 // Clean up open handles so the process ideally exits gracefully

Callers 1

messageListenerFunction · 0.70

Calls 2

exitProcessFunction · 0.70
execFunctionFunction · 0.70

Tested by

no test coverage detected