mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
test: remove infrastructure-dependent integration suites (#1573)
This commit is contained in:
1 parent
f88b0f69b2
commit
10fc79ab37
199 files changed
+688
-46963
No files matched your search
@@ -3,6 +3,7 @@
|
||||
const {existsSync} = require('node:fs');
|
||||
const {join, sep} = require('node:path');
|
||||
const {createNativeLoadError, loadNativeBinding} = require('./loader-diagnostics.cjs');
|
||||
const {nativeFileName} = require('./pure.cjs');
|
||||
const MODULE_NAME = '@fluxer/platform-info';
|
||||
const SKIP_NATIVE_PROBE_ENV = 'FLUXER_PLATFORM_INFO_SKIP_NATIVE_PROBE';
|
||||
|
||||
@@ -13,21 +14,6 @@ function resolveNativeRoot() {
|
||||
return existsSync(unpackedDir) ? unpackedDir : __dirname;
|
||||
}
|
||||
|
||||
function nativeFileName(platform = process.platform, arch = process.arch) {
|
||||
switch (platform) {
|
||||
case 'darwin':
|
||||
if (arch === 'x64' || arch === 'arm64') return `platform-info.darwin-${arch}.node`;
|
||||
break;
|
||||
case 'win32':
|
||||
if (arch === 'x64' || arch === 'arm64') return `platform-info.win32-${arch}-msvc.node`;
|
||||
break;
|
||||
case 'linux':
|
||||
if (arch === 'x64' || arch === 'arm64') return `platform-info.linux-${arch}-gnu.node`;
|
||||
break;
|
||||
}
|
||||
throw new Error(`Unsupported platform-info target: ${platform}/${arch}`);
|
||||
}
|
||||
|
||||
let binding = null;
|
||||
let loadError = null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user