(source, target)
| 30 | tmpdir.refresh(); |
| 31 | |
| 32 | function copyDir(source, target) { |
| 33 | fs.mkdirSync(target); |
| 34 | fs.readdirSync(source).forEach((entry) => { |
| 35 | const fullPathSource = path.join(source, entry); |
| 36 | const fullPathTarget = path.join(target, entry); |
| 37 | const stats = fs.statSync(fullPathSource); |
| 38 | if (stats.isDirectory()) { |
| 39 | copyDir(fullPathSource, fullPathTarget); |
| 40 | } else { |
| 41 | fs.copyFileSync(fullPathSource, fullPathTarget); |
| 42 | } |
| 43 | }); |
| 44 | } |
| 45 | |
| 46 | copyDir(fixtureSource, tmpDirTarget); |
| 47 |
no test coverage detected
searching dependent graphs…