From 534e61855717fea1ff7ce554523a4d59ff453553 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Sat, 2 Apr 2022 22:13:03 -0400 Subject: [PATCH] Fix unit test These additional methods are used in find-up and must be present in the mock `fs` --- lib/cli/src/detect.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cli/src/detect.test.ts b/lib/cli/src/detect.test.ts index 7c3a30cbccd..11303ab1436 100644 --- a/lib/cli/src/detect.test.ts +++ b/lib/cli/src/detect.test.ts @@ -15,6 +15,9 @@ jest.mock('./js-package-manager', () => ({ jest.mock('fs', () => ({ existsSync: jest.fn(), + stat: jest.fn(), + lstat: jest.fn(), + access: jest.fn(), })); jest.mock('path', () => ({