diff --git a/package-lock.json b/package-lock.json index dcb59bb6..5aa8e647 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "@graphql-codegen/client-preset": "^4.1.0", "@ianvs/prettier-plugin-sort-imports": "^4.1.1", "@testing-library/jest-dom": "^6.2.1", - "@testing-library/react": "^14.1.2", + "@testing-library/react": "^14.2.1", "@types/jest-axe": "^3.5.9", "@types/lodash": "^4.14.201", "@types/uuid": "^9.0.8", @@ -4754,9 +4754,9 @@ "dev": true }, "node_modules/@testing-library/react": { - "version": "14.1.2", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-14.1.2.tgz", - "integrity": "sha512-z4p7DVBTPjKM5qDZ0t5ZjzkpSNb+fZy1u6bzO7kk8oeGagpPCAtgh4cx1syrfp7a+QWkM021jGqjJaxJJnXAZg==", + "version": "14.2.1", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-14.2.1.tgz", + "integrity": "sha512-sGdjws32ai5TLerhvzThYFbpnF9XtL65Cjf+gB0Dhr29BGqK+mAeN7SURSdu+eqgET4ANcWoC7FQpkaiGvBr+A==", "dev": true, "dependencies": { "@babel/runtime": "^7.12.5", diff --git a/package.json b/package.json index ea7bcee8..df17e989 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@graphql-codegen/client-preset": "^4.1.0", "@ianvs/prettier-plugin-sort-imports": "^4.1.1", "@testing-library/jest-dom": "^6.2.1", - "@testing-library/react": "^14.1.2", + "@testing-library/react": "^14.2.1", "@types/jest-axe": "^3.5.9", "@types/lodash": "^4.14.201", "@types/uuid": "^9.0.8", diff --git a/src/tests/utils.tsx b/src/tests/utils.tsx index 126028c3..e0e1a041 100644 --- a/src/tests/utils.tsx +++ b/src/tests/utils.tsx @@ -35,7 +35,7 @@ export type TestAppDispatch = DispatchFromStoreFactory; const baseRender = (component: ReactElement, intialState?: TestAppState) => { const store = createStore(intialState); - const Wrapper = ({ children }: { children: ReactElement }) => ( + const Wrapper = ({ children }: React.PropsWithChildren<{}>) => ( {children} ); return { renderResult: rtlRender(component, { wrapper: Wrapper }), store };