Skip to content

Commit 7105a40

Browse files
authored
update types for react and react-dom (#328)
* chore: update dependencies * fix: status icon typing * fix: update test wrapper
1 parent 76b4b94 commit 7105a40

File tree

4 files changed

+20
-40
lines changed

4 files changed

+20
-40
lines changed

package-lock.json

Lines changed: 16 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
"@types/jest": "^29.0.0",
6767
"@types/jsdom": "20.0.1",
6868
"@types/node": "18.11.16",
69-
"@types/react": "17.0.52",
70-
"@types/react-dom": "17.0.18",
69+
"@types/react": "^18.0.26",
70+
"@types/react-dom": "^18.0.9",
7171
"@typescript-eslint/eslint-plugin": "5.46.1",
7272
"@typescript-eslint/parser": "5.46.1",
7373
"core-js": "3.26.1",

src/components/gherkin/StatusIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const StatusIcon: FunctionComponent<StatusIconProps> = (props) => {
3939
defaultStyles,
4040
DefaultRenderer
4141
)
42-
return <Customised {...props}>{props.children}</Customised>
42+
return <Customised {...props} />
4343
}
4444

4545
const statusIcon = (status: messages.TestStepResultStatus): IconDefinition => {

test-utils/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const AllTheProviders: FunctionComponent<PropsWithChildren<{ options: TestRender
2929
}
3030

3131
const customRender = (ui: ReactElement, options: Partial<TestRenderOptions> = {}) => {
32-
const WrappedWithOptions: FunctionComponent = ({ children }) => (
32+
const WrappedWithOptions: FunctionComponent<PropsWithChildren> = ({ children }) => (
3333
<AllTheProviders options={options}>{children}</AllTheProviders>
3434
)
3535
return render(ui, { wrapper: WrappedWithOptions })

0 commit comments

Comments
 (0)