MCPcopy
hub / github.com/webpack/webpack / afterEach

Function afterEach

test/helpers/createLazyTestEnv.js:142–154  ·  view source on GitHub ↗
(/** @type {unknown[]} */ ...args)

Source from the content-addressed store, hash-verified

140 });
141 },
142 afterEach(/** @type {unknown[]} */ ...args) {
143 if (runTests >= numberOfTests) {
144 throw new Error("afterEach called too late");
145 }
146 args[0] = createDisposableFn(/** @type {AnyFn | undefined} */ (args[0]));
147 inSuite(() => {
148 // @ts-expect-error expected
149 afterEach(...args);
150 fixAsyncError(
151 currentDescribeBlock.hooks[currentDescribeBlock.hooks.length - 1]
152 );
153 });
154 }
155 };
156};

Calls 3

createDisposableFnFunction · 0.85
inSuiteFunction · 0.85
fixAsyncErrorFunction · 0.85

Tested by

no test coverage detected