( projectRelativeDir: string, presetFilename: string, )
| 85 | } |
| 86 | |
| 87 | export function computeRelativePresetImport( |
| 88 | projectRelativeDir: string, |
| 89 | presetFilename: string, |
| 90 | ): string { |
| 91 | const relativePath = path.relative(projectRelativeDir, presetFilename); |
| 92 | const importPath = toUnixPath(relativePath).replace(/\.ts$/, '.js'); |
| 93 | return importPath.startsWith('.') ? importPath : `./${importPath}`; |
| 94 | } |
| 95 | |
| 96 | function formatImport({ |
| 97 | moduleSpecifier, |
no test coverage detected