mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Add simple test harness for easier debugging.
This commit is contained in:
parent
55937a0cfd
commit
8df19ae24b
1 changed files with 8 additions and 0 deletions
8
test/harness.mjs
Normal file
8
test/harness.mjs
Normal file
|
@ -0,0 +1,8 @@
|
|||
import library from "../lib/markdownlint.js";
|
||||
const markdownlint = library.promises.markdownlint;
|
||||
|
||||
const results = await markdownlint({
|
||||
"files": process.argv.slice(2)
|
||||
});
|
||||
// eslint-disable-next-line no-console
|
||||
console.dir(results, { "depth": null });
|
Loading…
Add table
Add a link
Reference in a new issue