完成回答、直达校正、输出审核和开流前加载仍留在路由里,使 diff 停在 1500 行以内。 Co-Authored-By: Grok (agent loop)
18 lines
763 B
TypeScript
18 lines
763 B
TypeScript
import assert from "node:assert/strict";
|
|
import { spawnSync } from "node:child_process";
|
|
import { fileURLToPath } from "node:url";
|
|
import test from "node:test";
|
|
|
|
test("consult settlement keeps reserve, cancel, append, smalltalk and usage behavior", () => {
|
|
const frontend = fileURLToPath(new URL("../", import.meta.url));
|
|
const script = fileURLToPath(new URL("./helpers/consult-settlement-behavior-20261013.mts", import.meta.url));
|
|
const result = spawnSync(process.execPath, [
|
|
"--experimental-test-module-mocks",
|
|
"--import",
|
|
"tsx",
|
|
script,
|
|
], { cwd: frontend, encoding: "utf8", timeout: 90_000 });
|
|
assert.equal(result.status, 0, `${result.stderr}\n${result.stdout}`);
|
|
assert.match(result.stdout, /consult-settlement-behavior ok/);
|
|
});
|