This commit is contained in:
David Anson 2025-07-06 06:02:33 +00:00
parent 37a935ad2f
commit 7a436f82a7
3 changed files with 1 additions and 26 deletions

View file

@ -1,13 +0,0 @@
// @ts-check
import path from "node:path";
const { join } = path.posix;
import test from "ava";
import { lintTestRepo } from "./markdownlint-test-repos.mjs";
test("https://github.com/dotnet/docs", (t) => {
const rootDir = "./test-repos/dotnet-docs";
const globPatterns = [ join(rootDir, "**/*.md") ];
const configPath = join(rootDir, ".markdownlint-cli2.jsonc");
return lintTestRepo(t, globPatterns, configPath, true);
});

View file

@ -1,13 +0,0 @@
// @ts-check
import path from "node:path";
const { join } = path.posix;
import test from "ava";
import { lintTestRepo } from "./markdownlint-test-repos.mjs";
test("https://github.com/mdn/content", (t) => {
const rootDir = "./test-repos/mdn-content";
const globPatterns = [ join(rootDir, "**/*.md") ];
const configPath = join(rootDir, ".markdownlint-cli2.jsonc");
return lintTestRepo(t, globPatterns, configPath, true);
});

View file

@ -43,6 +43,7 @@ export function lintTestRepo(t, globPatterns, configPath, parallel) {
config
}).then((results) => {
const resultsString = results.toString();
console.log(`${t.title}:\n${resultsString}`);
t.snapshot(
resultsString,
"Expected linting violations"