Files
Jyotisha/frontend/tests/consult-settlement-20261013.test.ts
T
jesse-uxandGrok (agent loop) cd7e0a3493
Independent Staging Quality Gate / validate (push) Successful in 13m51s
Independent Staging Quality Gate / publish (push) Successful in 4m6s
把普通对话的预留、取消、追加、寒暄结算和用量计算收进结算工厂。
完成回答、直达校正、输出审核和开流前加载仍留在路由里,使 diff 停在 1500 行以内。

Co-Authored-By: Grok (agent loop)
2026-10-15 19:12:44 +08:00

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/);
});