Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update testing libraries #5337

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"yup": "0.32.11"
},
"devDependencies": {
"@percy/cli": "1.20.0",
"@percy/cli": "1.28.1",
"@percy/cypress": "3.1.2",
"@playwright/test": "1.42.1",
"@storybook/addon-a11y": "7.6.17",
Expand All @@ -98,10 +98,10 @@
"@storybook/react-webpack5": "7.6.17",
"@storybook/theming": "7.6.17",
"@testing-library/cypress": "10.0.1",
"@testing-library/dom": "9.3.3",
"@testing-library/jest-dom": "6.0.0",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.4.3",
"@testing-library/dom": "9.3.4",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.2.1",
"@testing-library/user-event": "14.5.2",
"@types/classnames": "2.3.0",
"@types/clone-deep": "4.0.4",
"@types/node": "20.11.24",
Expand All @@ -121,8 +121,8 @@
"colors": "1.4.0",
"concurrently": "8.2.2",
"cooky-cutter": "1.5.4",
"cypress": "13.1.0",
"cypress-axe": "1.4.0",
"cypress": "13.6.6",
"cypress-axe": "1.5.0",
"cypress-wait-until": "3.0.1",
"dotenv-flow": "3.3.0",
"eslint": "8.57.0",
Expand Down
8 changes: 4 additions & 4 deletions src/testing/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const BrowserRouterWithProvider = ({
sidePanelSize,
state,
store,
}: WrapperProps & { children: React.ReactNode }): React.ReactElement => {
}: WrapperProps & { children: React.ReactNode }): React.ReactNode => {
const getMockStore = (state: RootState) => {
const mockStore = configureStore();
return mockStore(state);
Expand Down Expand Up @@ -148,7 +148,7 @@ const WithMockStoreProvider = ({
children,
state,
store,
}: WrapperProps & { children: React.ReactElement }) => {
}: WrapperProps & { children: React.ReactNode }) => {
const getMockStore = (state: RootState) => {
const mockStore = configureStore();
return mockStore(state);
Expand Down Expand Up @@ -183,7 +183,7 @@ export const renderWithBrowserRouter = (
};

export const renderWithMockStore = (
ui: React.ReactElement,
ui: React.ReactNode,
options?: RenderOptions & {
state?: RootState;
store?: WrapperProps["store"];
Expand All @@ -198,7 +198,7 @@ export const renderWithMockStore = (
});
return {
...rendered,
rerender: (ui: React.ReactElement) =>
rerender: (ui: React.ReactNode) =>
renderWithMockStore(ui, { container: rendered.container, ...options }),
};
};
Expand Down
Loading
Loading