MCPcopy
hub / github.com/webpack/webpack / expectNoDeprecations

Function expectNoDeprecations

test/helpers/expectNoDeprecations.js:13–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 * @returns {void}
12 */
13const expectNoDeprecations = () => {
14 /** @type {ReturnType<typeof deprecationTracking.start>} */
15 let deprecationTracker;
16
17 beforeEach(() => {
18 deprecationTracker = deprecationTracking.start();
19 });
20
21 afterEach(() => {
22 expect(deprecationTracker()).toEqual([]);
23 });
24};
25
26module.exports = expectNoDeprecations;
27

Calls 2

beforeEachFunction · 0.70
afterEachFunction · 0.70

Tested by

no test coverage detected