Force V8 GC after each test during leak checks

This commit is contained in:
Lovell Fuller
2019-07-29 11:33:45 +01:00
parent ba4ce75377
commit 6b7ce8a605
2 changed files with 7 additions and 1 deletions

View File

@@ -12,3 +12,9 @@ beforeEach(function () {
sharp.simd(usingSimd);
sharp.concurrency(concurrency);
});
afterEach(function () {
if (global.gc) {
global.gc();
}
});