MCPcopy
hub / github.com/webpack/webpack / createFiles

Function createFiles

test/ChangesAndRemovals.test.js:75–89  ·  view source on GitHub ↗

* @returns {void}

()

Source from the content-addressed store, hash-verified

73 * @returns {void}
74 */
75function 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.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected