Download scripts/unit.mjs from xjackkx/s2: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/spaces/xjackkx/s2/resolve/main/scripts/unit.mjs
- Command line
-
hf download hf://spaces/xjackkx/s2/scripts/unit.mjs
-
curl -L -o unit.mjs https://huggingface.co/spaces/xjackkx/s2/resolve/main/scripts/unit.mjs
340 Bytes
| import { runCommand, runPnpm } from "./process.mjs"; | |
| const vitestArgs = normalizeVitestArgs(process.argv.slice(2)); | |
| await runCommand(process.execPath, ["scripts/build.mjs", "--test-bundle"]); | |
| await runPnpm(["exec", "vitest", "run", ...vitestArgs]); | |
| function normalizeVitestArgs(args) { | |
| return args[0] === "--" ? args.slice(1) : args; | |
| } | |