import fs from "node:fs"; import path from "node:path"; import { describe, expect, it } from "vitest"; import { getSparseTsgoGuardError } from "../../scripts/lib/tsgo-sparse-guard.mjs"; import { createScriptTestHarness } from "./test-helpers.js";
it("returns a helpful message for sparse core-test worktrees missing ui and packages files", () => { const cwd = createTempDir("openclaw-run-tsgo-");
expect(
getSparseTsgoGuardError(["-p", "tsconfig.core.test.json"], {
cwd,
isSparseCheckoutEnabled: () => true,
}),
).toMatchInlineSnapshot(` "tsconfig.core.test.json requires a full worktree, but this checkout is sparse and missing files that the core test graph imports:
- packages/plugin-package-contract/src/index.ts
- ui/src/i18n/lib/registry.ts
- ui/src/i18n/lib/types.ts
- ui/src/ui/app-settings.ts
- ui/src/ui/gateway.ts
Run "gwt sparse full" in this worktree, then rerun the tsgo command."
`);
});
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.