reactjs - Jest test fails when run in suite but passes when run individually -


i have pretty simple test works when running individually fails when in suite:

it(   'should render modalcontent , react on menu state',   async () => {     const plans = await getmockedplans()     const plan = plans[0]     const component = shallow(       <modalcontent         plan={plan}         collapsemenu={jest.fn()}         selectplan={jest.fn()}         toggleaddonmenu={jest.fn()}         selected={plans[0].addons[0]}         ismenuopen={false}       />     )     expect(component.find('addontab').length).toequal(0)     component.setprops({ ismenuopen: true })          expect(component.find('addontab').length)                    .toequal(plan.addons.length)     component.setprops({ ismenuopen: false })     expect(component.find('addontab').length).toequal(0)   } )   expected value equal:   6 received:   0 

how can such test interfere other jest test?


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -