Add screenshot guided Hose onboarding
This commit is contained in:
1 parent
a92b409768
commit
286d8bfefd
11 files changed
+247
-27
No files matched your search
@@ -4,6 +4,8 @@ import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
import packageJson from "../../package.json" with { type: "json" };
|
||||
import {
|
||||
EMBEDDED_SKILL_ALL_PATHS,
|
||||
EMBEDDED_SKILL_ASSETS,
|
||||
EMBEDDED_SKILL_FILES,
|
||||
EMBEDDED_SKILL_VERSION,
|
||||
getSkillContent,
|
||||
@@ -13,11 +15,14 @@ import {
|
||||
} from "./embedded-skill.js";
|
||||
|
||||
describe("embedded-skill", () => {
|
||||
test("embeds SKILL.md and reference files", () => {
|
||||
test("embeds skill text and asset files", () => {
|
||||
expect(EMBEDDED_SKILL_FILES["SKILL.md"]).toBeDefined();
|
||||
expect(EMBEDDED_SKILL_FILES["SKILL.md"]).toContain("name: seal-use");
|
||||
expect(EMBEDDED_SKILL_FILES["references/cli.md"]).toBeDefined();
|
||||
expect(EMBEDDED_SKILL_FILES["references/enterprise-onboarding.md"]).toContain("# Enterprise Onboarding");
|
||||
expect(EMBEDDED_SKILL_FILES["references/first-time-user.md"]).toContain("复制 → 以 cURL 格式复制");
|
||||
expect(EMBEDDED_SKILL_ASSETS["assets/hose-curl-copy-as-curl.png"]).toBeDefined();
|
||||
expect(EMBEDDED_SKILL_ALL_PATHS).toContain("assets/hose-curl-copy-as-curl.png");
|
||||
expect(getSkillContent()).toContain("name: seal-use");
|
||||
});
|
||||
|
||||
@@ -30,6 +35,8 @@ describe("embedded-skill", () => {
|
||||
expect(existsSync(join(tmp, "SKILL.md"))).toBe(true);
|
||||
expect(existsSync(join(tmp, "references", "cli.md"))).toBe(true);
|
||||
expect(existsSync(join(tmp, "references", "enterprise-onboarding.md"))).toBe(true);
|
||||
expect(existsSync(join(tmp, "references", "first-time-user.md"))).toBe(true);
|
||||
expect(existsSync(join(tmp, "assets", "hose-curl-copy-as-curl.png"))).toBe(true);
|
||||
} finally {
|
||||
rmSync(tmp, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user