mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-20 05:40:17 +08:00
12 lines
426 B
TypeScript
12 lines
426 B
TypeScript
// @exit: 1
|
|
// A failing assertion is an uncaught AssertionError: the process exits 1
|
|
// with everything printed BEFORE the failure intact on stdout (stderr is
|
|
// the uncompared uncaught-throw report — the @exit contract).
|
|
import assert from "node:assert";
|
|
|
|
console.log("step 1");
|
|
assert.ok(true, "passes silently");
|
|
console.log("step 2");
|
|
assert.strictEqual("actual value", "expected value");
|
|
console.log("never reached");
|