mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
13 lines
272 B
JavaScript
13 lines
272 B
JavaScript
'use strict';
|
|
|
|
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);
|
|
});
|