(path: string)
| 26 | let map = JSON.stringify(mapObj) |
| 27 | |
| 28 | function deleteDir(path: string): void { |
| 29 | if (existsSync(path)) { |
| 30 | readdirSync(path).forEach(i => { |
| 31 | let file = join(path, i) |
| 32 | if (lstatSync(file).isDirectory()) { |
| 33 | deleteDir(file) |
| 34 | } else { |
| 35 | unlinkSync(file) |
| 36 | } |
| 37 | }) |
| 38 | rmdirSync(path) |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | test.after.each(() => { |
| 43 | deleteDir(dir) |
no outgoing calls
no test coverage detected
searching dependent graphs…