cara menguji batas waktu dalam komponen memasang
it('button shoould start glowing', () => {
const wrapper = mount(<PlayButton media={{ currentTime: 0, duration: 1 }}/>);
wrapper.update()
jest.runAllTimers();
expect(wrapper.state('glow')).toBe(true);
});
Bloody Beetle