Nodejs version 20 creates error with Request
Closed this issue · 0 comments
jaredwray commented
Describe the bug
FAIL test/cache.test.ts (8.056 s)
● cache remote address
expect(received).toBeDefined()
Received: undefined
672 | const response: any = await cacheableRequestHelper(s.url + endpoint);
673 | const cacheValue = JSON.parse(await cache.get(`cacheable-request:GET:${s.url + endpoint}`));
> 674 | expect(cacheValue.value.remoteAddress).toBeDefined();
| ^
675 | expect(response.statusCode).toBe(200);
676 | });
677 |
at Object.<anonymous> (test/cache.test.ts:674:41)
How To Reproduce (best to provide workable code or tests!)
run nvm use 20 && npm i && npm test