Skip to content

Commit

Permalink
Merge pull request #2538 from navikt/react19
Browse files Browse the repository at this point in the history
React 19?
  • Loading branch information
LudvigHz authored Jan 15, 2025
2 parents 3d1527f + a1ed2a8 commit 02a7572
Show file tree
Hide file tree
Showing 103 changed files with 19,221 additions and 22,572 deletions.
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@
"nav-frontend-typografi-style": "^1.0.22",
"openapi-fetch": "^0.13.4",
"openapi-react-query": "^0.2.9",
"react": "^18.3.1",
"react": "^19.0.0",
"react-day-picker": "^7.3.2",
"react-dom": "^18.3.1",
"react-dom": "^19.0.0",
"react-error-boundary": "^5.0.0",
"react-hook-form": "^7.54.1",
"react-modal": "^3.16.1",
"react-modal": "^3.16.3",
"react-redux": "^7.2.0",
"redux": "^4.2.1",
"redux-thunk": "^2.4.2",
Expand All @@ -136,12 +136,11 @@
"@types/md5": "^2.3.5",
"@types/node": "^22.10.6",
"@types/prop-types": "^15.7.14",
"@types/react": "^18.3.18",
"@types/react": "^19.0.7",
"@types/react-collapse": "^5.0.4",
"@types/react-dom": "^18.3.1",
"@types/react-dom": "^19.0.3",
"@types/react-modal": "^3.16.3",
"@types/react-redux": "^7.1.9",
"@types/react-test-renderer": "^18.3.0",
"autoprefixer": "^10.4.20",
"cross-env": "^7.0.3",
"happy-dom": "^16.5.3",
Expand All @@ -151,11 +150,10 @@
"msw": "^2.7.0",
"nav-faker": "^3.2.4",
"openapi-typescript": "^7.5.2",
"postcss": "^8.5.0",
"postcss": "^8.5.1",
"postcss-import": "^16.1.0",
"prop-types": "^15.8.1",
"react-collapse": "^5.1.1",
"react-test-renderer": "^18.3.1",
"redux-devtools-extension": "^2.13.9",
"stylelint": "^16.13.1",
"tailwindcss": "^3.4.17",
Expand Down
592 changes: 272 additions & 320 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/app/personside/dialogpanel/DialogPanel.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as renderer from 'react-test-renderer';
import { render } from '@testing-library/react';
import { vi } from 'vitest';
import TestProvider from '../../../test/Testprovider';
import { setupReactQueryMocks } from '../../../test/testStore';
Expand All @@ -12,12 +12,12 @@ beforeEach(() => {
});

test('viser dialogpanel', () => {
const dialogPanelBody = renderer.create(
const dialogPanelBody = render(
<TestProvider>
<DialogPanel />
</TestProvider>
);

expect(dialogPanelBody.toJSON()).toMatchSnapshot();
expect(dialogPanelBody.asFragment()).toMatchSnapshot();
dialogPanelBody.unmount();
});
Loading

0 comments on commit 02a7572

Please sign in to comment.