(files: string[])
| 15 | import type { ResolutionContext } from '../src/resolution'; |
| 16 | |
| 17 | function contextWithFiles(files: string[]): ResolutionContext { |
| 18 | const set = new Set(files); |
| 19 | return { |
| 20 | getNodesInFile: () => [], |
| 21 | getNodesByName: () => [], |
| 22 | getNodesByQualifiedName: () => [], |
| 23 | getNodesByKind: () => [], |
| 24 | fileExists: (p: string) => set.has(p), |
| 25 | readFile: () => null, |
| 26 | getProjectRoot: () => '/test', |
| 27 | getAllFiles: () => files, |
| 28 | getNodesByLowerName: () => [], |
| 29 | getImportMappings: () => [], |
| 30 | } as unknown as ResolutionContext; |
| 31 | } |
| 32 | |
| 33 | describe('emitted-extension import specifiers (`./x.js` naming `x.ts`)', () => { |
| 34 | it('maps a relative .js specifier onto the .ts source', () => { |
no test coverage detected