Skip to content

Commit

Permalink
chore: using rimraf instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsteele committed Sep 9, 2021
1 parent 019aa12 commit 6e2aee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { resolve } = require('path')
const { createHash } = require('crypto')
const webpack = require('webpack')
const { readFileSync } = require('fs')
const { rmdir } = require('fs').promises
const rimraf = require('rimraf');

const Src = require('../src')
const Dist = require('../dist')
Expand Down Expand Up @@ -83,7 +83,7 @@ beforeEach((done) => {

const outputDir = resolve(__dirname, `output/${hash(expect.getState().currentTestName)}`)

rmdir(outputDir, { recursive: true }).then(done)
rimraf(outputDir, done)
})

describe.each(versions)('%s', (_, DotenvPlugin) => {
Expand Down

0 comments on commit 6e2aee9

Please sign in to comment.