Answer the question
In order to leave comments, you need to log in
Testing Enzyme.. Why is the data not updated after simulate()?
I am testing a react component using Enzyme
The component has an array of 150 records displayed in a table
Pagination of 50 records is used, respectively, only the first 50 are displayed in the table
First they are sorted by guest name
const component = mount(<GuestsList />)
const guestNames = component.find('.cell-guestName')
// Показывается все верно, length: 50 (Anna April, Anna Astray...)
component.find('th.column-guestName').sumulate('click')
const guestNames = component.find('.cell-guestName')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question