Lint: the new route inventory, its tests and the touched tests

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 20:33:04 +01:00
co-authored by Claude Opus 5.5
parent d4fe3bf4ba
commit 8f443c9214
8 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ describe('starter: links and paths (IAWL ideas 12, 13)', () => {
const dir = path.join(parent, 'site')
try {
for (const bad of ['../escaped.txt', 'a/../../escaped.txt', path.join(parent, 'abs.txt')]) {
expect(() => writeFiles(dir, { 'ok.txt': 'fine', [bad]: 'no' }), bad).toThrow(/outside the new folder/)
expect(() => writeFiles(dir, { [bad]: 'no', 'ok.txt': 'fine' }), bad).toThrow(/outside the new folder/)
}
expect(readdirSync(parent)).toEqual([])
writeFiles(dir, { 'ok.txt': 'fine', 'src/a/b.ts': 'x' })