Skip to content

Commit

Permalink
Node 10 support, use unlink instread of rm
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Kesterson committed Nov 1, 2021
1 parent 423937c commit cc41979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/back.js
Expand Up @@ -263,7 +263,7 @@ function removeFixture(fixture, options) {
}

if (fixture && fixtureExists(fixture)) {
fs.rmSync(fixture)
fs.rmSync ? fs.rmSync(fixture) : fs.unlinkSync(fixture);
}
context.isLoaded = false
return context
Expand Down

0 comments on commit cc41979

Please sign in to comment.