Skip to content

Commit

Permalink
fix: create resultsDir after removing
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Nov 18, 2023
1 parent 0c37219 commit a654264
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reporter/JestAllure2Reporter.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import fs from 'node:fs/promises';
import path from 'node:path';

import type {
Expand Down Expand Up @@ -78,6 +79,7 @@ export class JestAllure2Reporter extends JestMetadataReporter {

if (this._config.overwrite) {
await rimraf(this._config.resultsDir);
await fs.mkdir(this._config.resultsDir, { recursive: true });
}
}

Expand Down

0 comments on commit a654264

Please sign in to comment.