From 0a91e70541177b677027335ce9b65e6e2c03a3b8 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Mon, 25 Jul 2022 10:41:30 +0200 Subject: [PATCH] tests: mock remove from fs-extra --- lib/core-server/src/core-presets.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core-server/src/core-presets.test.ts b/lib/core-server/src/core-presets.test.ts index dc13a72da1b..c7f92b8c1c1 100644 --- a/lib/core-server/src/core-presets.test.ts +++ b/lib/core-server/src/core-presets.test.ts @@ -52,6 +52,7 @@ jest.mock('fs-extra', () => ({ emptyDir: jest.fn(() => undefined), ensureDir: jest.fn(() => undefined), writeJSON: jest.fn(() => undefined), + remove: jest.fn(() => undefined), readJSON: jest.fn(() => ({})), pathExists: jest.fn(() => true), }));