diff --git a/package.json b/package.json index 6b7b948f..f9869669 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "test-extra": "ava --timeout=10m test/markdownlint-test-extra-parse.mjs test/markdownlint-test-extra-type.mjs", "update-snapshots": "ava --update-snapshots test/markdownlint-test-custom-rules.mjs test/markdownlint-test-exports.mjs test/markdownlint-test-micromark.mjs test/markdownlint-test-scenarios.mjs", "update-snapshots-test-repos": "ava --timeout=10m --update-snapshots test/markdownlint-test-repos-*.mjs", + "update-test-repos": "node scripts/index.mjs remove ./test-repos && npm run clone-test-repos && npm run update-snapshots-test-repos", "upgrade": "npx --yes npm-check-updates --upgrade" }, "engines": { diff --git a/scripts/index.mjs b/scripts/index.mjs index 94845ab7..f59372f6 100644 --- a/scripts/index.mjs +++ b/scripts/index.mjs @@ -19,7 +19,7 @@ if (command === "copy") { ) ); } else if (command === "remove") { - await Promise.all(args.map((dir) => rm(dir, { "recursive": true }))); + await Promise.all(args.map((dir) => rm(dir, { "force": true, "recursive": true }))); } else { throw new Error(`Unsupported command: ${command}`); } diff --git a/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.md b/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.md index 378045fb..2b909f2d 100644 --- a/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.md +++ b/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.md @@ -40,7 +40,6 @@ Generated by [AVA](https://avajs.dev). test-repos/dotnet-docs/docs/orleans/tutorials-and-samples/overview-helloworld.md: 17: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/dotnet-docs/docs/standard/native-interop/tutorial-comwrappers.md: 251: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/dotnet-docs/includes/core-changes/aspnetcore/3.0/authn-apis-json-types.md: 16: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ - test-repos/dotnet-docs/includes/core-changes/aspnetcore/3.0/authn-google-plus-authn-changes.md: 19: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/dotnet-docs/includes/core-changes/aspnetcore/3.0/kestrel-connection-adapters-removed.md: 25: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/dotnet-docs/includes/migration-guide/retargeting/networking/only-tls-10-11-12-protocols-supported-systemnetservicepointmanager.md: 11: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ test-repos/dotnet-docs/includes/migration-guide/retargeting/security/cspparametersparentwindowhandle-now-expects-hwnd-value.md: 23: MD059/descriptive-link-text Link text should be descriptive [Context: "[here]"]␊ diff --git a/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap b/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap index d0407aa6..74db7da3 100644 Binary files a/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap and b/test/snapshots/markdownlint-test-repos-dotnet-docs.mjs.snap differ