(project: string, expected: string)
| 26 | for (const separator of process.platform === "win32" ? ["/", "\\"] : ["/"]) { |
| 27 | for (const pointsTo of ["file", "directory"] as const) { |
| 28 | const findAndExpect = (project: string, expected: string) => { |
| 29 | project = project.replace(/[\\/]/g, separator); |
| 30 | if (pointsTo === "directory") { |
| 31 | project = path.dirname(project); |
| 32 | } |
| 33 | |
| 34 | expect(locate(project)).toBe(normalize(expected)); |
| 35 | }; |
| 36 | |
| 37 | test(`relative to ${pointsTo} separated with '${separator}'`, async () => { |
| 38 | await fs.outputFile("tsconfig.json", ""); |
no test coverage detected