From 5a25084eab8def47e75f11a1982f73ba88b48833 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Tue, 23 Aug 2022 23:27:55 +0530 Subject: [PATCH] Jest configuration fix (#15673) --- test/jest/setup.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/jest/setup.js b/test/jest/setup.js index 6176cfc66..ae49888e5 100644 --- a/test/jest/setup.js +++ b/test/jest/setup.js @@ -1,2 +1,10 @@ // This file is for Jest-specific setup only and runs before our Jest tests. import '@testing-library/jest-dom'; + +jest.mock('webextension-polyfill', () => { + return { + runtime: { + getManifest: () => ({ manifest_version: 2 }), + }, + }; +});