Mocking table instance for testing #1198
Unanswered
andreagari
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Probably don't mock a table instance, just actually create one. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have a component who receives the table instance on props. Is there any way to mock that table, to be able to test that component?
This is a short example of the component definition:
type TComponentProps = {
table: MRT_TableInstance
prop2: any[
prop3:any
}
const Component = ({
table,
prop2,
prop3,
}: TComponentProps) => {
.....
return <></>
}
Thanks for the support!
Beta Was this translation helpful? Give feedback.
All reactions