You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to be similar if not the same issue as 370.
Shareable Source
describe("Simple Example",function(){it("fetches a post",asyncfunction(){constpolly=newPolly("Simple Example",{adapters: [NodeAdapter],// Hook into `fetch`persister: "fs",logLevel: "info",// Log requests to consolemode: MODES.RECORD,});constresponse=awaitfetch("https://jsonplaceholder.typicode.com/posts/1");constpost: PostData=(awaitresponse.json())asPostData;expect(response.status).toBe(200);expect(post.id).toBe(1);awaitpolly.stop();});});
Error Message & Stack Trace
FAIL tests/pollyjs.test.ts
● Test suite failed to run
EXPERIMENTAL FEATURE!
Your test suite is leaking memory. Please ensure all references are cleaned.
There is a number of things that can leak memory:
- Async operations that have not finished (e.g. fs.readFile).
- Timers not properly mocked (e.g. setInterval, setTimeout).
- Keeping references to the global scope.
at onResult (node_modules/@jest/core/build/TestScheduler.js:150:18)
at node_modules/@jest/core/build/TestScheduler.js:254:19
at node_modules/emittery/index.js:363:13
at Array.map (<anonymous>)
at Emittery.emit (node_modules/emittery/index.js:361:23)
Config
Copy the config used to setup the Polly instance:
constpolly=newPolly("Simple Example",{adapters: [NodeAdapter],// Hook into `fetch`persister: "fs",logLevel: "info",// Log requests to consolemode: MODES.RECORD,});
Description
This appears to be similar if not the same issue as 370.
Shareable Source
Error Message & Stack Trace
Config
Copy the config used to setup the Polly instance:
Dependencies
Copy the @pollyjs dependencies from
package.json
:Relevant Links
minimal reproduction
Environment
The text was updated successfully, but these errors were encountered: