Tests: Move all setup to named file

This commit is contained in:
Lovell Fuller
2018-09-22 13:54:20 +01:00
parent 2ce166ab0a
commit 24b42ef192
3 changed files with 11 additions and 3 deletions

View File

@@ -4,7 +4,9 @@ const detectLibc = require('detect-libc');
const sharp = require('../../');
const usingCache = detectLibc.family !== detectLibc.MUSL;
const usingSimd = !process.env.G_DEBUG;
beforeEach(function () {
sharp.cache(usingCache);
sharp.simd(usingSimd);
});