(path: string)
| 39 | }) |
| 40 | |
| 41 | function deleteDir(path: string): void { |
| 42 | if (existsSync(path)) { |
| 43 | readdirSync(path).forEach(i => { |
| 44 | let file = join(path, i) |
| 45 | if (lstatSync(file).isDirectory()) { |
| 46 | deleteDir(file) |
| 47 | } else { |
| 48 | unlinkSync(file) |
| 49 | } |
| 50 | }) |
| 51 | rmdirSync(path) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | test.after.each(() => { |
| 56 | deleteDir(dir) |
no outgoing calls
no test coverage detected
searching dependent graphs…