Skip to content

Commit

Permalink
handle eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed May 30, 2024
1 parent 54c115b commit e86bf23
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/parse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const RESULTS_FILE = path.resolve(REPO_ROOT, "results.json");
const FAILURES_FILE = path.resolve(REPO_ROOT, "failures.json");
const RERUN_FILE = path.resolve(REPO_ROOT, "reruns.txt");

// TODO(Tyler): Remove this blocklist once eslint-friendly release is out.
const VALIDATED_LINTER_BLOCKLIST = ["eslint"];

const RUN_ID = process.env.RUN_ID ?? "";
const TEST_REF = process.env.TEST_REF ?? "latest release";
const GITHUB_REPOSITORY = process.env.GITHUB_REPOSITORY ?? "missing_repo";
Expand Down Expand Up @@ -323,7 +326,11 @@ const writeTestResults = (testResults: TestResultSummary) => {
const pluginVersion = PLUGIN_VERSION;
const validatedVersions = Array.from(testResults.testResults).reduce(
(accumulator: ValidatedVersion[], [linter, { version, testResultStatus }]) => {
if (testResultStatus === "passed" && version) {
if (
testResultStatus === "passed" &&
version &&
!VALIDATED_LINTER_BLOCKLIST.includes(linter)
) {
const additionalValidatedVersion: ValidatedVersion = { linter, version };
return accumulator.concat([additionalValidatedVersion]);
}
Expand Down

0 comments on commit e86bf23

Please sign in to comment.