mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
wip
This commit is contained in:
parent
37a935ad2f
commit
7a436f82a7
3 changed files with 1 additions and 26 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
@ -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);
|
||||
});
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue