MCPcopy Index your code
hub / github.com/code-pushup/cli / cleanTestFolder

Function cleanTestFolder

testing/test-utils/src/lib/utils/test-folder-setup.ts:5–8  ·  view source on GitHub ↗
(dirName: string)

Source from the content-addressed store, hash-verified

3import path from 'node:path';
4
5export async function cleanTestFolder(dirName: string) {
6 await teardownTestFolder(dirName);
7 await mkdir(dirName, { recursive: true });
8}
9
10export async function teardownTestFolder(dirName: string) {
11 try {

Callers 5

runner.int.test.tsFile · 0.90
wizard.int.test.tsFile · 0.90
run.int.test.tsFile · 0.90

Calls 2

teardownTestFolderFunction · 0.85
mkdirFunction · 0.85

Tested by

no test coverage detected