From cc4197925208dfc6d50c06dec8ddc4957dd58833 Mon Sep 17 00:00:00 2001 From: Robert Kesterson Date: Mon, 1 Nov 2021 17:51:32 -0400 Subject: [PATCH] Node 10 support, use unlink instread of rm --- lib/back.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/back.js b/lib/back.js index b2147b7ef..2f55d3753 100644 --- a/lib/back.js +++ b/lib/back.js @@ -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