test(release): read the fragment directory's notes too and skip directories

This commit is contained in:
esengine committed 2026-10-13 09:56:38 -07:00
1 parent 3f0463e2bf
commit fd311693f6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ test("HTML comments hide references on one line or across several", () => {
test("annotating leaves every other byte in place", async () => {
const dir = new URL("../release-notes/studio/", import.meta.url);
for (const name of await readdir(dir)) {
for (const name of (await readdir(dir, { recursive: true })).filter((entry) => entry.endsWith(".md"))) {
const source = await readFile(new URL(name, dir), "utf8");
assert.equal(annotateMarkdown(source, () => ""), source, name);
assert.equal(annotateMarkdown(source, tag).replace(/<\d+>/g, ""), source, name);
+1 -1
View File
@@ -62,7 +62,7 @@ test("an unresolved ref stays plain and is reported by code", async () => {
test("committed notes render unchanged when nothing is credited", async () => {
const dir = new URL("../release-notes/studio/", import.meta.url);
for (const name of await readdir(dir)) {
for (const name of (await readdir(dir, { recursive: true })).filter((entry) => entry.endsWith(".md"))) {
const source = await readFile(new URL(name, dir), "utf8");
assert.equal(renderStudioNotes(source, new Map()), `${source.trimEnd()}\n`, name);
}