Ignacio Catalina
Ignacio Catalina
hi @lpaulger, thanks for the advice. I already did that but used 800ms just to make sure (this is withing the 1s that jest will allow, not ideal, but works)....
My bad, I referenced this issue somewhere else 😅
Not sure what changed, but 'infinite' now leaves Jest hanging forever... 🤦♂️
Not specially proud of this solution, but for the time being this seems to be working fine for me: ```tsx // Delay all unhandled requests forever const defaultHandler = rest.all('*',...
@finalight, do you want to try: ```ts rest.all('*', () => new Promise(() => undefined)) ``` I'm not sure if I'm dreaming, but it seems to be working fine 😅
Latest iteration, this one seems to be working fine: (don't judge me 🤣) ```ts const emitter = new EventEmitter(); afterEach(() => { emitter.emit('done'); }); export const handlers = [ rest.all('*',...
can't we clean up on server.close()?
Hey @kettanaito, sorry for the late reply. I'm not sure I follow, I thought the idea was to kill all requests after `server.close()`, I'm not sure what kind of ramifications...
Hi @daisy1754! Thanks for the comments and proposed solutions. It seems reasonable that we return the tax value for the shipping option. Let me discuss it with the back end...
It will be cool to have one of this per repo. There are some repos I want to be notified all the time, others where I only care if I'm...