Skip to content

test(vscode): wait for expected diagnostics in fixAll E2E setups - #25

Merged
fi3ework merged 1 commit into
mainfrom
fix/lint-e2e-rslint-081
Aug 20, 2026
Merged

test(vscode): wait for expected diagnostics in fixAll E2E setups#25
fi3ework merged 1 commit into
mainfrom
fix/lint-e2e-rslint-081

Conversation

@fi3ework

Copy link
Copy Markdown
Member

Summary

  • macOS E2E started failing once the floating lint fixture picked up @rslint/core 0.8.1: since perf: optimize LSP TypeScript project selection web-infra-dev/rslint#1790, a file created after its project was loaded is served by a type-info-less fallback Program until a watcher event admits it into the configured project. The first non-empty diagnostics publish can therefore carry only non-type-aware rules on platforms with slow file watchers (macOS) — and the fixAll suites, which create their targets via withTmpFile, asserted on exactly that first publish. Linux/Windows close the admission window before the first publish, which is why only macOS was red.
  • Setup waits now go through a new waitForDiagnosticsWithMessages helper (documented deviation from the upstream suites) that waits until the expected diagnostics are present. The terminal assertions are unchanged and hold on both 0.8.0 and 0.8.1.
  • The lint fixture floor moves to ^0.8.1 to match what CI resolves.

Verified locally on macOS against 0.8.1: all 10 lint E2E suites pass; pnpm lint && pnpm test:unit green.

Related Links

N/A

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Since @rslint/core 0.8.1 (web-infra-dev/rslint#1790), a file created after
its project was loaded is served by a type-info-less fallback Program until
a watcher event admits it into the configured project, so the first
non-empty publish may carry only non-type-aware rules on platforms with
slow file watchers (macOS). The fixAll suites create their targets through
withTmpFile and asserted on that first non-empty publish, which now fails.

Setup waits go through a new waitForDiagnosticsWithMessages helper that
waits until the expected diagnostics are present — the terminal assertion
is unchanged and holds on both 0.8.0 and 0.8.1. The lint fixture floor
moves to ^0.8.1 to match what CI resolves.
@fi3ework
fi3ework merged commit 7f496b4 into main Aug 20, 2026
3 checks passed
@fi3ework
fi3ework deleted the fix/lint-e2e-rslint-081 branch August 20, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant