-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskill-selection-suite.ts
More file actions
30 lines (27 loc) · 1.02 KB
/
skill-selection-suite.ts
File metadata and controls
30 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { assert, type TestCase } from "../src/index.js";
const prompt = "Find a skill for upgrading Expo SDK and tell me how to install it.";
const suite: TestCase[] = [
{
id: "find-skills-expo-opencode-compatible",
prompt,
async assert(report) {
assert.skills.has(report, "find-skills");
assert.commands.includes(report, "npx skills find");
assert.match(report.finalOutput, /upgrading-expo/i);
assert.match(report.finalOutput, /npx skills add/i);
},
},
{
id: "find-skills-expo-strict",
prompt,
async assert(report) {
assert.skills.includes(report, ["find-skills", "upgrading-expo"]);
assert.fileReads.includes(report, /find-skills\/SKILL\.md$/);
assert.fileReads.includes(report, /upgrading-expo\/SKILL\.md$/);
assert.fileReads.before(report, /find-skills\/SKILL\.md$/, /upgrading-expo\/SKILL\.md$/);
assert.match(report.finalOutput, /upgrading-expo/i);
assert.match(report.finalOutput, /npx skills add/i);
},
},
];
export default suite;