mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
test: expand Memory and Routines coverage (#1521)
* test: expand settings and packaged coverage * test: extend memory settings coverage * test: cover routine settings failure states * test: cover routine operation failures * test: fix daemon test typing on CI * test: decouple packaged smoke from orbit bug * test: avoid live memory LLM calls in route tests * test: fix daemon fetch typing in CI * fix: restore preview comment and inspect toggles * test: align manual edit flow with current inspector UX * test: align comment attachment flow with current preview comments UI * fix: probe resolved Codex launch path during detection * fix: remove duplicate board activation helper after rebase * test: update ghost cli detection mock * test: align FileViewer toolbar expectation * ci: move full app tests to extended lane * ci: run app tests by changed scope * ci: cover shared app inputs in test scopes * ci: avoid setup-node cache in windows packaged smoke * test: align extended settings and manual edit flows
This commit is contained in:
@@ -18,6 +18,12 @@ describe("copyBundledResourceTrees", () => {
|
||||
"image",
|
||||
"sample.json",
|
||||
);
|
||||
const designTemplatePath = join(
|
||||
workspaceRoot,
|
||||
"design-templates",
|
||||
"orbit-general",
|
||||
"SKILL.md",
|
||||
);
|
||||
const communityPetPath = join(
|
||||
workspaceRoot,
|
||||
"assets",
|
||||
@@ -31,7 +37,7 @@ describe("copyBundledResourceTrees", () => {
|
||||
// `design-templates/` tree that copyBundledResourceTrees now also
|
||||
// bundles. Create it in the fixture so the recursive copy does not
|
||||
// fail with ENOENT before reaching the prompt-templates assertion.
|
||||
await mkdir(join(workspaceRoot, "design-templates", "sample"), {
|
||||
await mkdir(join(workspaceRoot, "design-templates", "orbit-general"), {
|
||||
recursive: true,
|
||||
});
|
||||
await mkdir(join(workspaceRoot, "design-systems", "sample"), {
|
||||
@@ -46,6 +52,7 @@ describe("copyBundledResourceTrees", () => {
|
||||
recursive: true,
|
||||
});
|
||||
await writeFile(promptTemplatePath, "{\"id\":\"sample\"}\n", "utf8");
|
||||
await writeFile(designTemplatePath, "# Orbit General\n", "utf8");
|
||||
await writeFile(communityPetPath, "{\"name\":\"sample\"}\n", "utf8");
|
||||
|
||||
await copyBundledResourceTrees({ workspaceRoot, resourceRoot });
|
||||
@@ -56,6 +63,12 @@ describe("copyBundledResourceTrees", () => {
|
||||
"utf8",
|
||||
),
|
||||
).resolves.toBe("{\"id\":\"sample\"}\n");
|
||||
await expect(
|
||||
readFile(
|
||||
join(resourceRoot, "design-templates", "orbit-general", "SKILL.md"),
|
||||
"utf8",
|
||||
),
|
||||
).resolves.toBe("# Orbit General\n");
|
||||
await expect(
|
||||
readFile(
|
||||
join(resourceRoot, "community-pets", "sample", "pet.json"),
|
||||
|
||||
Reference in New Issue
Block a user