MCPcopy
hub / github.com/commitizen/cz-cli / archive

Function archive

test/tools/clean.js:39–43  ·  view source on GitHub ↗

* Copies the .tmp folder to the artifacts folder, * then clears the .tmp folder * * Generally should be run in afterEach()

(tmpPath, testSuiteRunId)

Source from the content-addressed store, hash-verified

37 * Generally should be run in afterEach()
38 */
39function archive (tmpPath, testSuiteRunId) {
40 let destinationPath = path.resolve(tmpPath + '/../artifacts/' + testSuiteRunId + '/' + uuidv4());
41 fs.mkdirSync(destinationPath, { recursive: true });
42 fs.copySync(tmpPath, destinationPath);
43}
44
45/**
46 * Cleans up the artifacts folder

Callers 1

afterEachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected