fix test files

This commit is contained in:
Rohid
2024-08-31 17:51:40 +06:00
parent d7cd69783b
commit fd94e53ac1
6 changed files with 87 additions and 77 deletions

View File

@@ -1,15 +1,16 @@
import React from 'react';
import { Browser } from 'webextension-polyfill';
import { renderWithProviders } from '../utils/test-utils';
import MainList from './MainList';
jest.mock<typeof import('webextension-polyfill')>('webextension-polyfill', () => {
return {
runtime: {
getManifest: () => {
return { version: 'test-version' };
},
getManifest: () => ({
version: 'test-version',
}),
},
};
} as Browser;
});
describe('MainList', () => {