mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Force V8 GC after each test during leak checks
This commit is contained in:
@@ -12,3 +12,9 @@ beforeEach(function () {
|
||||
sharp.simd(usingSimd);
|
||||
sharp.concurrency(concurrency);
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
if (global.gc) {
|
||||
global.gc();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user