mock package.json version for plugin configuration tests (#2370)
This commit is contained in:
parent
43d1f607f0
commit
ffd6aac400
1 changed files with 4 additions and 0 deletions
|
|
@ -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: '',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue