* Copies the .tmp folder to the artifacts folder, * then clears the .tmp folder * * Generally should be run in afterEach()
(tmpPath, testSuiteRunId)
| 37 | * Generally should be run in afterEach() |
| 38 | */ |
| 39 | function 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 |