Skip to content

How do you test with handleSubmit and fireEvent? #1966

Answered by bluebill1049
mdbiscan asked this question in Q&A
Discussion options

You must be logged in to vote

for react-native you will need to stub window object. This will be part of the FAQ in the new doc

beforeAll(() => { global.window = {} })
afterAll(() => { global.window = undefined} })

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@mdbiscan
Comment options

@mdbiscan
Comment options

@bluebill1049
Comment options

@mdbiscan
Comment options

@keiya01
Comment options

Answer selected by mdbiscan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants