From 73e2e4489c988a442844e8ffda6ac79f5d706ba7 Mon Sep 17 00:00:00 2001 From: Martin Hanzel Date: Tue, 16 Jul 2019 16:03:41 +0200 Subject: Lazy-load auto-injected mocks --- spec/frontend/mocks/node/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/frontend/mocks/node/jquery.js') diff --git a/spec/frontend/mocks/node/jquery.js b/spec/frontend/mocks/node/jquery.js index 9a8a1e950b9..34a25772f67 100644 --- a/spec/frontend/mocks/node/jquery.js +++ b/spec/frontend/mocks/node/jquery.js @@ -1,6 +1,6 @@ /* eslint-disable import/no-commonjs */ -import $ from 'jquery'; +const $ = jest.requireActual('jquery'); // Fail tests for unmocked requests $.ajax = () => { -- cgit v1.2.1