diff --git a/package.json b/package.json
index e9364f1d7d..d579753158 100644
--- a/package.json
+++ b/package.json
@@ -99,7 +99,7 @@
"http-server": "14.1.1",
"husky": "9.1.7",
"identity-obj-proxy": "3.0.0",
- "jest": "29.7.0",
+ "jest": "30.0.2",
"jest-environment-jsdom": "29.7.0",
"jest-junit": "16.0.0",
"jest-mock-axios": "4.8.0",
diff --git a/src/features/instantiate/selection/InstanceSelection.test.tsx b/src/features/instantiate/selection/InstanceSelection.test.tsx
index 9c41519c6d..7603b23513 100644
--- a/src/features/instantiate/selection/InstanceSelection.test.tsx
+++ b/src/features/instantiate/selection/InstanceSelection.test.tsx
@@ -72,7 +72,7 @@ describe('InstanceSelection', () => {
it('pressing "Start på nytt" should trigger callback', async () => {
const { mutations } = await render();
await userEvent.click(screen.getByText(/start på nytt/i));
- expect(mutations.doInstantiate.mock).toBeCalledTimes(1);
+ expect(mutations.doInstantiate.mock).toHaveBeenCalledTimes(1);
});
it('should trigger openInstance on editButton click', async () => {
@@ -88,7 +88,7 @@ describe('InstanceSelection', () => {
await userEvent.click(button);
expect(window.location.href).toBe('https://local.altinn.cloud/ttd/test#/instance/some-id');
- expect(mutations.doInstantiate.mock).toBeCalledTimes(0);
+ expect(mutations.doInstantiate.mock).toHaveBeenCalledTimes(0);
});
it('should trigger openInstance on editButton click during mobile view', async () => {
@@ -107,6 +107,6 @@ describe('InstanceSelection', () => {
await userEvent.click(button);
expect(window.location.href).toBe('https://local.altinn.cloud/ttd/test#/instance/some-other-id');
- expect(mutations.doInstantiate.mock).toBeCalledTimes(0);
+ expect(mutations.doInstantiate.mock).toHaveBeenCalledTimes(0);
});
});
diff --git a/src/features/instantiate/selection/InstanceSelection.tsx b/src/features/instantiate/selection/InstanceSelection.tsx
index d0627538bc..eb61dbc859 100644
--- a/src/features/instantiate/selection/InstanceSelection.tsx
+++ b/src/features/instantiate/selection/InstanceSelection.tsx
@@ -143,7 +143,7 @@ function InstanceSelection() {
{instances.length > rowsPerPageOptions[0] && (
-
+
{instances.length > rowsPerPageOptions[0] && (
-
+
-