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

Function beforeEach

packages/jest-jasmine2/src/jasmine/jasmineLight.ts:118–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 },
117
118 beforeEach() {
119 if (typeof arguments[0] !== 'function') {
120 throw new TypeError(
121 'Invalid first argument. It must be a callback function.',
122 );
123 }
124 return env.beforeEach.apply(env, arguments);
125 },
126
127 afterEach() {
128 if (typeof arguments[0] !== 'function') {

Callers 3

reporter.test.tsFile · 0.50
Suite.test.tsFile · 0.50
pTimeout.test.tsFile · 0.50

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected