Skip to content

Commit

Permalink
Un-exclude a passing test case from main/fs scenarios.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Aug 16, 2023
1 parent 51ba5fe commit 1514b52
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
3 changes: 1 addition & 2 deletions test/markdownlint-cli2-test-cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,7 @@ const testCases =
"stderrRe":
// eslint-disable-next-line max-len
/Configuration file "cfg\/unrecognized\.jsonc" is unrecognized; its name should be \(or end with\) one of the supported types \(e\.g\., "\.markdownlint\.json" or "example\.markdownlint-cli2\.jsonc"\)\./u,
"cwd": "config-files",
"env": onlyRunViaExec
"cwd": "config-files"
});

testCase({
Expand Down
14 changes: 14 additions & 0 deletions test/snapshots/markdownlint-cli2-test-fs.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,20 @@ Generated by [AVA](https://avajs.dev).
`,
}

## config-file-unrecognized-arg (fs)

> Snapshot 1
{
exitCode: 2,
formatterCodeQuality: '',
formatterJson: '',
formatterJunit: '',
formatterSarif: '',
stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊
`,
}

## package-json (fs)

> Snapshot 1
Expand Down
Binary file modified test/snapshots/markdownlint-cli2-test-fs.js.snap
Binary file not shown.
14 changes: 14 additions & 0 deletions test/snapshots/markdownlint-cli2-test-main.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,20 @@ Generated by [AVA](https://avajs.dev).
`,
}

## config-file-unrecognized-arg (main)

> Snapshot 1
{
exitCode: 2,
formatterCodeQuality: '',
formatterJson: '',
formatterJunit: '',
formatterSarif: '',
stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊
`,
}

## package-json (main)

> Snapshot 1
Expand Down
Binary file modified test/snapshots/markdownlint-cli2-test-main.js.snap
Binary file not shown.

0 comments on commit 1514b52

Please sign in to comment.