mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Sync upstream into v2.7.0: the git board skill replaces git-commit (ticket-free), and console docs and tests are split up
AI Assisted
This commit is contained in:
1 parent
6114914dd6
commit
f328406bb5
103 files changed
+17636
-9991
No files matched your search
@@ -11,6 +11,13 @@ import { ROOT, SKILLS, NOW, runScript, tmp, write, read, gitInit, phase } from "
|
||||
|
||||
/* ================================================================ install */
|
||||
|
||||
test("npm test runs every scripts/test-*.mjs file, and names none that is missing", () => {
|
||||
const command = JSON.parse(fs.readFileSync(path.join(ROOT, "package.json"), "utf8")).scripts.test;
|
||||
const listed = [...command.matchAll(/scripts\/(test-[\w-]+\.mjs)/g)].map((m) => m[1]).sort();
|
||||
const onDisk = fs.readdirSync(path.join(ROOT, "scripts")).filter((f) => /^test-[\w-]+\.mjs$/.test(f)).sort();
|
||||
assert.deepEqual(listed, onDisk);
|
||||
});
|
||||
|
||||
test("every skill with scripts ships common.mjs and version.json; dashboard ships none", () => {
|
||||
const withScripts = fs.readdirSync(SKILLS).filter((s) => fs.existsSync(path.join(SKILLS, s, "scripts")));
|
||||
assert.ok(withScripts.length >= 11, `expected most skills to carry scripts, got ${withScripts.join(", ")}`);
|
||||
|
||||
Reference in new issue
Block a user