(fixture: TestFixture)
| 76 | } |
| 77 | |
| 78 | export function getBasename(fixture: TestFixture): string { |
| 79 | return stripExtension(path.basename(fixture.inputPath), INPUT_EXTENSIONS); |
| 80 | } |
| 81 | export function isExpectError(fixture: TestFixture | string): boolean { |
| 82 | const basename = typeof fixture === 'string' ? fixture : getBasename(fixture); |
| 83 | return basename.startsWith('error.') || basename.startsWith('todo.error'); |
no test coverage detected