(dir: string, work: () => Promise<void>)
| 100 | } |
| 101 | |
| 102 | export async function inDir(dir: string, work: () => Promise<void>) { |
| 103 | let origin = process.cwd(); |
| 104 | |
| 105 | debug(`cd ${dir}`); |
| 106 | process.chdir(dir); |
| 107 | |
| 108 | await work(); |
| 109 | process.chdir(origin); |
| 110 | } |
| 111 | |
| 112 | export function testsInDir(dir: string, extension: string): string[] { |
| 113 | return shell.ls(`${dir}/*.${extension}`); |
no test coverage detected
searching dependent graphs…