mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40: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
|
config
|
||||||
}).then((results) => {
|
}).then((results) => {
|
||||||
const resultsString = results.toString();
|
const resultsString = results.toString();
|
||||||
|
console.log(`${t.title}:\n${resultsString}`);
|
||||||
t.snapshot(
|
t.snapshot(
|
||||||
resultsString,
|
resultsString,
|
||||||
"Expected linting violations"
|
"Expected linting violations"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue