MCPcopy Create free account
hub / github.com/webpack/webpack-cli / uniqueDirectoryForTest

Function uniqueDirectoryForTest

test/utils/test-utils.js:381–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379 typeof stderr === "string" ? stderr.replaceAll(EXPERIMENTAL_WARNING_RE, "") : stderr;
380
381const uniqueDirectoryForTest = async () => {
382 const result = path.resolve(path.resolve(__dirname, "../create-webpack-app-testing"), uuid());
383
384 if (!fs.existsSync(result)) {
385 fs.mkdirSync(result, { recursive: true });
386 }
387
388 return result;
389};
390
391module.exports = {
392 getWebpackCliArguments,

Callers 3

init.test.jsFile · 0.85
plugin.test.jsFile · 0.85
loader.test.jsFile · 0.85

Calls 1

uuidFunction · 0.85

Tested by

no test coverage detected