mirror of
https://github.com/garrytan/gstack.git
synced 2026-07-07 16:48:01 +02:00
fix(gbrain): probe CLI without command builtin
This commit is contained in:
@@ -55,6 +55,13 @@ describe("gstack-gbrain-sync CLI", () => {
|
||||
expect(r.stderr).toContain("Unknown argument: --bogus");
|
||||
});
|
||||
|
||||
it("uses the shared local gbrain status classifier instead of shelling through command -v", () => {
|
||||
const source = readFileSync(SCRIPT, "utf-8");
|
||||
|
||||
expect(source).not.toContain('command -v gbrain');
|
||||
expect(source).toContain("localEngineStatus");
|
||||
});
|
||||
|
||||
it("--dry-run with --code-only reports the code import preview only", () => {
|
||||
const home = makeTestHome();
|
||||
const gstackHome = join(home, ".gstack");
|
||||
|
||||
Reference in New Issue
Block a user