diff --git a/package.json b/package.json index bf24c3ea56..b6edc22d7d 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "license": "Apache-2.0", "scripts": { "build": "bash ./scripts/md2html/build.sh", - "test": "c8 vitest --watch=false" + "test": "c8 --100 vitest --watch=false" }, "readmeFilename": "README.md", "files": [ diff --git a/scripts/md2html/md2html.js b/scripts/md2html/md2html.js index 8be4c21152..ef95f67761 100644 --- a/scripts/md2html/md2html.js +++ b/scripts/md2html/md2html.js @@ -190,7 +190,7 @@ for (let l in lines) { // remove TOC from older spec versions, respec will generate a new one if (line.startsWith('## Table of Contents')) inTOC = true; - if (line.startsWith('

Heading 2

Text for first section

Broken anchor

diff --git a/tests/md2html/fixtures/basic-old.md b/tests/md2html/fixtures/basic-old.md index 6ff065e949..22be28ae57 100644 --- a/tests/md2html/fixtures/basic-old.md +++ b/tests/md2html/fixtures/basic-old.md @@ -10,8 +10,6 @@ This is the conformance section Will be removed - - ## Heading 2 Text for first section diff --git a/vitest.config.js b/vitest.config.js new file mode 100644 index 0000000000..b8c8dfb4c0 --- /dev/null +++ b/vitest.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + forceRerunTriggers: ['**/scripts/**', '**/tests/**'], + }, +}) \ No newline at end of file