(root: string, path: string)
| 67 | } |
| 68 | |
| 69 | export function formatTestPath(root: string, path: string): string { |
| 70 | if (isAbsolute(path)) { |
| 71 | path = relative(root, path) |
| 72 | } |
| 73 | |
| 74 | const dir = dirname(path) |
| 75 | const ext = path.match(/(\.(spec|test)\.[cm]?[tj]sx?)$/)?.[0] || '' |
| 76 | const base = basename(path, ext) |
| 77 | |
| 78 | return slash(c.dim(`${dir}/`) + c.bold(base)) + c.dim(ext) |
| 79 | } |
| 80 | |
| 81 | export function renderSnapshotSummary( |
| 82 | rootDir: string, |
no test coverage detected