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

Function getTestMock

packages/jest-core/src/__tests__/testSchedulerHelper.test.js:11–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import {shouldRunInBand} from '../testSchedulerHelper';
10
11const getTestMock = () => ({
12 context: {
13 config: {
14 runner: 'jest-runner-parallel',
15 },
16 hasteFS: {
17 matchFiles: jest.fn(() => []),
18 },
19 },
20 path: './test/path.js',
21});
22
23const getTestsMock = () => [getTestMock(), getTestMock()];
24

Callers 2

getTestsMockFunction · 0.85

Calls 1

fnMethod · 0.80

Tested by

no test coverage detected