From 4e3d046f772b6e9855d6972683e978ea8b87e657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=A9=89=E7=8E=89?= Date: Tue, 1 Sep 2020 11:32:07 +0800 Subject: [PATCH] test: avoid mock the whole lodash but only debounce --- packages/popper/__mocks__/lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/popper/__mocks__/lodash.js b/packages/popper/__mocks__/lodash.js index 5212a40214..22e13231b8 100644 --- a/packages/popper/__mocks__/lodash.js +++ b/packages/popper/__mocks__/lodash.js @@ -1,5 +1,5 @@ -const _ = jest.genMockFromModule('lodash') +const _ = jest.requireActual('lodash') const debounce = jest.fn(fn => {