mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Refactor tests to split large repo tests into separate files so ava will run them in parallel (reduces test time by ~50%).
This commit is contained in:
parent
7d2248d211
commit
d0a491d74b
12 changed files with 597 additions and 623 deletions
14
test/markdownlint-test-repos-dotnet-docs.js
Normal file
14
test/markdownlint-test-repos-dotnet-docs.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// @ts-check
|
||||
|
||||
"use strict";
|
||||
|
||||
const { join } = require("node:path").posix;
|
||||
const test = require("ava").default;
|
||||
const { lintTestRepo } = require("./markdownlint-test-repos");
|
||||
|
||||
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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue