Fix possible exceptions due to addError's range/editColumn out of range, update test-extra to use test.serial() for better progress.

This commit is contained in:
David Anson 2023-12-31 21:51:34 -08:00
parent e7d3708056
commit 9b5f6a28f9
8 changed files with 19 additions and 18 deletions

View file

@ -18,7 +18,7 @@ for (const file of files) {
strings[content.length.toString()] = content;
content = content.slice(0, -1);
}
test(`type ${file}`, (t) => {
test.serial(`type ${file}`, (t) => {
t.plan(1);
markdownlint.sync({
// @ts-ignore

View file

@ -6521,7 +6521,7 @@ Generated by [AVA](https://avajs.dev).
errorDetail: 'Expected: 0; Actual: 1',
errorRange: [
1,
3,
4,
],
fixInfo: {
deleteCount: 1,