Install: advanced option to force global libvips #4060

This commit is contained in:
Lovell Fuller
2024-04-10 09:25:53 +01:00
parent f67228e5ea
commit 579cf93030
5 changed files with 28 additions and 6 deletions

View File

@@ -66,6 +66,14 @@ describe('libvips binaries', function () {
delete process.env.SHARP_IGNORE_GLOBAL_LIBVIPS;
});
it('useGlobalLibvips can be forced via an env var', function () {
process.env.SHARP_FORCE_GLOBAL_LIBVIPS = 1;
const useGlobalLibvips = libvips.useGlobalLibvips();
assert.strictEqual(true, useGlobalLibvips);
delete process.env.SHARP_FORCE_GLOBAL_LIBVIPS;
});
});
describe('Build time platform detection', () => {