question:
what is the good way to destroy the recorder? It seems that the memory usage keep rising during recording.
In beforeEach:
recorder = new PuppeteerScreenRecorder(pyBell.page);
await recorder.start(./report/video/a.mp4);
after finish executing test case:
await recorder.stop();
just repeat the above steps,After loads of tests,the memory usage rise to unacceptable level,and cause test to fail.
question: what is the good way to destroy the recorder? It seems that the memory usage keep rising during recording.
In beforeEach: recorder = new PuppeteerScreenRecorder(pyBell.page); await recorder.start(
./report/video/a.mp4
); after finish executing test case: await recorder.stop();just repeat the above steps,After loads of tests,the memory usage rise to unacceptable level,and cause test to fail.
Also tried stream,it turns out the same.