-
Notifications
You must be signed in to change notification settings - Fork 724
feat: more tsx tabs in RTL setup doc #828
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
Conversation
Could you check these conflicts @Liadshiran |
d6d2a21
to
d0ee4ed
Compare
docs/react-testing-library/setup.mdx
Outdated
@@ -79,6 +79,7 @@ export { customRender as render } | |||
|
|||
```tsx title="test-utils.tsx" | |||
import React, { FC, ReactElement } from 'react' | |||
import { Omit } from 'react-redux' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant as Omit
is native in TS :)
https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys
Thanks for taking the time @Liadshiran! |
And also, here |
I added |
Thanks @Liadshiran and @pedroapfilho! :) |
As proposed in #696 and started with #700, I added the rest of the code snippets examples in Typescript for the Setup doc of react testing library.