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

Function forceWindows

packages/jest-pattern/src/__tests__/TestPathPatterns.test.ts:38–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 mockRelative.mockImplementation(path.posix.relative);
37};
38const forceWindows = () => {
39 mockSep.mockReturnValue(path.win32.sep);
40 mockIsAbsolute.mockImplementation(path.win32.isAbsolute);
41 mockRelative.mockImplementation(path.win32.relative);
42};
43beforeEach(() => {
44 jest.resetAllMocks();
45 forcePosix();

Callers 1

Calls 2

mockReturnValueMethod · 0.80
mockImplementationMethod · 0.80

Tested by

no test coverage detected