Files
wehub-resource-sync 2771cff92b
CI / lint (push) Failing after 1s
CI / typecheck (push) Failing after 2s
CI / build (push) Has been skipped
CI / test (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:22:56 +08:00

20 lines
494 B
JavaScript

const { spawnSync } = require('child_process');
const os = require('os');
const path = require('path');
const jestPath = require.resolve('jest/bin/jest');
const localStorageFile = path.join(os.tmpdir(), 'claudian-localstorage');
const result = spawnSync(
process.execPath,
[`--localstorage-file=${localStorageFile}`, jestPath, ...process.argv.slice(2)],
{ stdio: 'inherit' }
);
if (result.error) {
console.error(result.error);
process.exit(1);
}
process.exit(result.status ?? 1);