mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-02 07:43:42 +08:00
11 lines
417 B
TypeScript
11 lines
417 B
TypeScript
import { execFileSync } from "node:child_process";
|
|
import { join } from "node:path";
|
|
import { expect, test } from "vitest";
|
|
|
|
test("scr_dyn_methods.h lists every method id the checked-dynamic dispatch compares", () => {
|
|
const script = join(import.meta.dirname, "../../../scripts/gen-dyn-methods.mjs");
|
|
expect(() =>
|
|
execFileSync(process.execPath, [script, "--check"], { stdio: "pipe" }),
|
|
).not.toThrow();
|
|
});
|