Skip to content

Speed up diagnostics tests - #762

Merged
mattiamanzati merged 1 commit into
mainfrom
test/diagnostics-skip-lib-check
Jul 11, 2026
Merged

mattiamanzati merged 1 commit into
mainfrom
test/diagnostics-skip-lib-check

Conversation

@mattiamanzati

Copy link
Copy Markdown
Contributor

Summary

  • enable skipLibCheck for mocked TypeScript programs in the diagnostics test harness
  • apply the option to initial diagnostics, quick-fix checks, and post-fix validation programs
  • reduce time and memory spent checking dependency declaration files that are outside the diagnostic fixtures

Performance

A controlled v4 run over 14 diagnostic and quick-fix tests measured:

Configuration Wall time Test time Peak RSS
skipLibCheck: true 25.95s 23.78s 1.81 GB
skipLibCheck: false 61.09s 58.78s 2.82 GB
skipLibCheck: true 25.99s 23.68s 1.78 GB

This is approximately 57.5% lower wall time and 36% lower peak memory.

Validation

  • pnpm codegen
  • pnpm lint-fix
  • pnpm check
  • pnpm test
  • pnpm test:v4

@changeset-bot

changeset-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 044dded

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/language-service Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mattiamanzati
mattiamanzati merged commit 5e71871 into main Jul 11, 2026
5 checks passed
@mattiamanzati
mattiamanzati deleted the test/diagnostics-skip-lib-check branch July 11, 2026 07:08
@github-actions github-actions Bot mentioned this pull request Jul 11, 2026
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