Check in the CommonMark spec suite and pin its exception list
CI / gate (push) Successful in 19s
CI / publish (push) Has been skipped

This commit is contained in:
2026-09-05 18:56:28 +02:00
parent 026ea5e1b6
commit e6610d7057
7 changed files with 5847 additions and 5 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
import assert from 'node:assert/strict'
import { readFileSync, readdirSync } from 'node:fs'
import { basename, dirname, join } from 'node:path'
import { basename, dirname, join, sep } from 'node:path'
import test from 'node:test'
import { fileURLToPath } from 'node:url'
@@ -53,12 +53,13 @@ function pairedNames(root: string, first: string, second: string): string[] {
function corpusJsonPaths(): string[] {
return readdirSync(corpusRoot, { encoding: 'utf8', recursive: true })
.filter((name) => name.endsWith('.json'))
.filter((name) => !name.startsWith(`commonmark-spec${sep}`))
.map((name) => join(corpusRoot, name))
.sort()
}
test('every corpus directory is a kind the runner reads', () => {
assert.deepEqual(directoryNames(corpusRoot), ['errors', 'normalization', 'round-trip'])
assert.deepEqual(directoryNames(corpusRoot), ['commonmark-spec', 'errors', 'normalization', 'round-trip'])
})
test('every round-trip directory is a kind the runner reads', () => {