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

Function normalizePaths

e2e/__tests__/listTests.test.ts:16–21  ·  view source on GitHub ↗
(rawPaths: string)

Source from the content-addressed store, hash-verified

14const testRootDir = path.resolve(__dirname, '..', '..');
15
16const normalizePaths = (rawPaths: string) =>
17 rawPaths
18 .split(testRootDir)
19 .join(`${path.sep}MOCK_ABSOLUTE_PATH`)
20 .split('\\')
21 .join('/');
22
23describe('--listTests flag', () => {
24 it('causes tests to be printed in different lines', () => {

Callers 1

listTests.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected