()
| 499 | |
| 500 | const root = `${tmpAbsDir}/node-test-realpath-abs-kids`; |
| 501 | function cleanup() { |
| 502 | ['/a/b/c/x.txt', |
| 503 | '/a/link', |
| 504 | ].forEach(function(file) { |
| 505 | try { fs.unlinkSync(root + file); } catch { |
| 506 | // Continue regardless of error. |
| 507 | } |
| 508 | }); |
| 509 | ['/a/b/c', |
| 510 | '/a/b', |
| 511 | '/a', |
| 512 | '', |
| 513 | ].forEach(function(folder) { |
| 514 | try { fs.rmdirSync(root + folder); } catch { |
| 515 | // Continue regardless of error. |
| 516 | } |
| 517 | }); |
| 518 | } |
| 519 | |
| 520 | function setup() { |
| 521 | cleanup(); |
no test coverage detected
searching dependent graphs…