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

Function forcePosix

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

Source from the content-addressed store, hash-verified

31 } as typeof path;
32});
33const forcePosix = () => {
34 mockSep.mockReturnValue(path.posix.sep);
35 mockIsAbsolute.mockImplementation(path.posix.isAbsolute);
36 mockRelative.mockImplementation(path.posix.relative);
37};
38const forceWindows = () => {
39 mockSep.mockReturnValue(path.win32.sep);
40 mockIsAbsolute.mockImplementation(path.win32.isAbsolute);

Callers 1

Calls 2

mockReturnValueMethod · 0.80
mockImplementationMethod · 0.80

Tested by

no test coverage detected