1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00

Jest configuration fix (#15673)

This commit is contained in:
Jyoti Puri 2022-08-23 23:27:55 +05:30 committed by GitHub
parent 6185cc6e5e
commit 5a25084eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,10 @@
// This file is for Jest-specific setup only and runs before our Jest tests. // This file is for Jest-specific setup only and runs before our Jest tests.
import '@testing-library/jest-dom'; import '@testing-library/jest-dom';
jest.mock('webextension-polyfill', () => {
return {
runtime: {
getManifest: () => ({ manifest_version: 2 }),
},
};
});