mock package.json version for plugin configuration tests (#2370)

This commit is contained in:
Joey Orlando 2023-06-28 11:18:37 +02:00 committed by GitHub
parent 43d1f607f0
commit ffd6aac400
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,10 @@ import PluginConfigPage, {
removePluginConfiguredQueryParams,
} from './PluginConfigPage';
jest.mock('../../../package.json', () => ({
version: 'v1.2.3',
}));
jest.mock('react-router-dom', () => ({
useLocation: jest.fn(() => ({
search: '',