Download mobile/scripts/hermes-source.test.mjs from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/scripts/hermes-source.test.mjs
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/scripts/hermes-source.test.mjs
-
curl -L -o hermes-source.test.mjs https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/scripts/hermes-source.test.mjs
700 Bytes
| 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/) | |
| }) | |