(filePath: string)
| 10 | const MOCKS_PATTERN = `${path.sep}__mocks__${path.sep}`; |
| 11 | |
| 12 | const getMockName = (filePath: string): string => { |
| 13 | const mockPath = filePath.split(MOCKS_PATTERN)[1]; |
| 14 | return mockPath |
| 15 | .slice(0, mockPath.lastIndexOf(path.extname(mockPath))) |
| 16 | .replaceAll('\\', '/'); |
| 17 | }; |
| 18 | |
| 19 | export default getMockName; |
no outgoing calls
no test coverage detected