({ sourcePath, sourceRoot, mode })
| 46 | } |
| 47 | |
| 48 | export const localSpecOutputName: OutputNamePolicy = ({ sourcePath, sourceRoot, mode }) => { |
| 49 | const localPath = relative(sourceRoot, sourcePath).replaceAll('\\', '/'); |
| 50 | const extension = extname(localPath); |
| 51 | const stem = (extension ? localPath.slice(0, -extension.length) : localPath).replace(/-spec$/, ''); |
| 52 | return `${stem}.${mode}.spec.ts`; |
| 53 | }; |
| 54 | |
| 55 | /** |
| 56 | * Resolves, validates, reads, and transforms an entire migration batch without |
no test coverage detected