Asserting like this: `expect(res2.

Asserting like this: expect(res2.headers.get('CF-Cache-Status')).toBe('HIT') I am using waitUntil for the cache put, but awaiting it doesn't seem to work either
7 Replies
MrBBot
MrBBotโ€ข9mo ago
Hmmm ok, are you consuming all your response bodies from SELF.fetch() requests?
Jacob
JacobOPโ€ข9mo ago
Yes
MrBBot
MrBBotโ€ข9mo ago
Ok, if you could put together a minimal reproduction that would be super helpful ๐Ÿ™‚
Jacob
JacobOPโ€ข9mo ago
ok will make one in a bit ๐Ÿ™‚
MrBBot
MrBBotโ€ข9mo ago
Thanks! ๐Ÿงก
Jacob
JacobOPโ€ข9mo ago
omg sorry this was a bug in my code... it turns out my code was incorrectly relying on the Cache-Control header from an upstream fetch(), which I didn't add to my mocked fetch call :NPCMechanicFacepalm:
MrBBot
MrBBotโ€ข9mo ago
Whoops! No worries ๐Ÿ™‚
Want results from more Discord servers?
Add your server