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

Function cleanupOutputDirs

scripts/cleanup-test.js:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18const folderStrategy = (stats, file) => stats.isDirectory() && outputDirectories.includes(file);
19
20const cleanupOutputDirs = () => {
21 for (const outputFolder of collectTestFolders(folderStrategy)) {
22 for (const dir of outputDirectories) {
23 fs.rmSync(join(outputFolder, dir), { recursive: true, force: true });
24 }
25 }
26};
27
28module.exports = cleanupOutputDirs;

Callers

nothing calls this directly

Calls 1

collectTestFoldersFunction · 0.85

Tested by

no test coverage detected