IF Commons GitHub

spec-files

Reading a folder of specifications for the Mizan rules (commons 0003-mizan FR-019): the text of each specs/NNNN-slug/spec.md and of its plan.md where there is one, and the comment lines a baseline file begins with.

Source: commons/mizan/src/spec-files.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

BASELINE_COMMENTSconstno test imports it
const BASELINE_COMMENTS: readonly ["The findings of the rules Mizan adds (commons 0003-mizan FR-015) that existed when each rule was first held.", "A new finding fails the check, and so does a line below that no longer occurs: when you fix one, delete its line.", "Never add a line to make a check pass."]

The comment lines a baseline file begins with.

readSpecTextsfunction
function readSpecTexts(root: string): readonly SpecText[]

The specifications of a folder (root/specs/NNNN-slug/spec.md, and plan.md where there is one), in the order of their names.

Imported by 27 tests of the run (27 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.