* @returns {void}
()
| 73 | * @returns {void} |
| 74 | */ |
| 75 | function createFiles() { |
| 76 | fs.mkdirSync(tempFolderPath, { recursive: true }); |
| 77 | |
| 78 | fs.writeFileSync( |
| 79 | tempFilePath, |
| 80 | "module.exports = function temp() {return 'temp file';};\n require('./temp-file2')", |
| 81 | "utf8" |
| 82 | ); |
| 83 | |
| 84 | fs.writeFileSync( |
| 85 | tempFile2Path, |
| 86 | "module.exports = function temp2() {return 'temp file 2';};", |
| 87 | "utf8" |
| 88 | ); |
| 89 | } |
| 90 | |
| 91 | // Bun's fs.watch surfaces unlink events differently from Node, so watchpack |
| 92 | // reports the removed file inconsistently across runs; skip on Bun. |
no outgoing calls
no test coverage detected