mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
test: handle missing configure-ecc docs cleanly
This commit is contained in:
parent
803abe52a5
commit
d05855be5f
4 changed files with 14 additions and 8 deletions
|
|
@ -27,12 +27,16 @@ function test(name, fn) {
|
|||
}
|
||||
}
|
||||
|
||||
function readConfigureEccDoc(relativePath) {
|
||||
return fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');
|
||||
}
|
||||
|
||||
console.log('\n=== Testing configure-ecc install path guidance ===\n');
|
||||
|
||||
for (const relativePath of configureEccDocs) {
|
||||
const content = fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');
|
||||
|
||||
test(`${relativePath} separates core and niche skill source roots`, () => {
|
||||
const content = readConfigureEccDoc(relativePath);
|
||||
|
||||
assert.ok(
|
||||
content.includes('$ECC_ROOT/.agents/skills/<skill-name>'),
|
||||
'Expected configure-ecc to document the core skill source root'
|
||||
|
|
@ -44,6 +48,8 @@ for (const relativePath of configureEccDocs) {
|
|||
});
|
||||
|
||||
test(`${relativePath} documents defensive copy form for trailing slash sources`, () => {
|
||||
const content = readConfigureEccDoc(relativePath);
|
||||
|
||||
assert.ok(
|
||||
content.includes('${src%/}'),
|
||||
'Expected configure-ecc to strip trailing slash before copying'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue