File size: 700 Bytes
e1f81b0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import assert from "node:assert/strict"
import {spawnSync} from "node:child_process"
import test from "node:test"
import {fileURLToPath} from "node:url"
test("installed React Native keeps Hermes source aligned when binary probes fail", (t) => {
const result = spawnSync("ruby", [fileURLToPath(new URL("./hermes-source.test.rb", import.meta.url))], {
encoding: "utf8",
})
if (result.error?.code === "ENOENT") {
t.skip("Ruby is unavailable; the iOS build requires Ruby and exercises the installed podspec")
return
}
assert.equal(result.status, 0, result.error?.message ?? result.stderr)
assert.match(result.stdout, /8 Hermes source-selection checks passed/)
})
|