Skip to content

Commit 2cf5440

Browse files
committed
Add additional test case for previous commit fixing dotfile behavior.
1 parent 21c53ed commit 2cf5440

13 files changed

Lines changed: 77 additions & 1 deletion
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ignores": [
3+
"**/*.md"
4+
]
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Information
2+
Text ` code1` text `code2 ` text
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Information
2+
Text ` code1` text `code2 ` text
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Information
2+
Text ` code1` text `code2 ` text
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Information
2+
Text ` code1` text `code2 ` text
3+

test/markdownlint-cli2-test-cases.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ const testCases = (/** @type {TestConfiguration} */ {
316316
"cwd": "dotfiles"
317317
});
318318

319+
testCase({
320+
"name": "dotfiles-nested",
321+
"args": [ "**/*.md" ],
322+
"exitCode": 0
323+
});
324+
319325
testCase({
320326
"name": "globs",
321327
"args": [],

test/markdownlint-cli2-test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ test("validateMarkdownlintConfigSchema", async (t) => {
152152
});
153153

154154
test("validateMarkdownlintCli2ConfigSchema", async (t) => {
155-
t.plan(95);
155+
t.plan(96);
156156

157157
// Validate schema
158158
// @ts-ignore

test/snapshots/markdownlint-cli2-test-exec.mjs.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,23 @@ Generated by [AVA](https://avajs.dev).
669669
Summary: 0 error(s)`,
670670
}
671671

672+
## dotfiles-nested (exec)
673+
674+
> Snapshot 1
675+
676+
{
677+
exitCode: 0,
678+
formatterCodeQuality: '',
679+
formatterJson: '',
680+
formatterJunit: '',
681+
formatterSarif: '',
682+
stderr: '',
683+
stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊
684+
Finding: **/*.md␊
685+
Linting: 4 file(s)␊
686+
Summary: 0 error(s)`,
687+
}
688+
672689
## globs (exec)
673690

674691
> Snapshot 1
25 Bytes
Binary file not shown.

test/snapshots/markdownlint-cli2-test-fs.mjs.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,24 @@ Generated by [AVA](https://avajs.dev).
698698
`,
699699
}
700700

701+
## dotfiles-nested (fs)
702+
703+
> Snapshot 1
704+
705+
{
706+
exitCode: 0,
707+
formatterCodeQuality: '',
708+
formatterJson: '',
709+
formatterJunit: '',
710+
formatterSarif: '',
711+
stderr: '',
712+
stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊
713+
Finding: **/*.md␊
714+
Linting: 4 file(s)␊
715+
Summary: 0 error(s)␊
716+
`,
717+
}
718+
701719
## globs (fs)
702720

703721
> Snapshot 1

0 commit comments

Comments
 (0)