mirror of
https://github.com/przeprogramowani/10x-cli.git
synced 2026-09-19 03:30:01 +08:00
2525f86d88
* chore(quality): integrate shared offline CLI gate * chore(release): prepare v1.22.1 * docs(quality): record complete local gate and source provenance --------- Co-authored-by: Claude <noreply@anthropic.com>
17 lines
753 B
TypeScript
17 lines
753 B
TypeScript
import { expect, test } from "bun:test";
|
|
import { spawnSync } from "node:child_process";
|
|
|
|
// quality-loop v1 uses POSIX process groups. Windows retains the native CLI suite.
|
|
const qualityTest = process.platform === "win32" ? test.skip : test;
|
|
qualityTest("shared quality runner detects real lint, type, test and copy regressions", () => {
|
|
const result = spawnSync("node", ["--test", "--test-reporter=tap", ".quality/regression.test.mjs"], {
|
|
cwd: import.meta.dir + "/..",
|
|
encoding: "utf8",
|
|
timeout: 120000,
|
|
});
|
|
expect(result.error, result.stderr).toBeUndefined();
|
|
expect(result.status, result.stdout + result.stderr).toBe(0);
|
|
expect(result.stdout).toMatch(/^# pass 4$/m);
|
|
expect(result.stdout).toMatch(/^# fail 0$/m);
|
|
}, 120000);
|