Skip to content
Conformance report

How close is tsc-rs to tsc?

tsc-rs is measured against the TypeScript project's own test suites, using the baseline files that the real compiler produced. This page reports the native implementation at its dated measurement, including incomplete lanes. External tsrs checking is measured separately.

Suites compiler, conformance, fourslashOracle tsc reference baselinesNative measurement 14 October 2026

Baseline lanes

One configuration per test case, compared with the baseline file that tsc itself produced. The emit lane skips 497 compiler and 519 conformance cases that have no .js oracle (mostly noEmit); the diagnostics lane exercises all of them. Symbols and types skip 95 compiler and 290 conformance cases without a uniquely selected oracle.

Native measurement 14 October 2026

JavaScript emit

Byte-for-byte match with the tsc .js baseline, one configuration per case.

Compiler suite6,032 / 6,032100%
Conformance suite5,388 / 5,388100%

Diagnostics

Whole-case match with the tsc .errors.txt baseline: message, position and code.

Compiler suite5,014 / 6,52976.8%
Conformance suite4,080 / 5,90769.1%

Symbols

Match with the tsc .symbols baseline.

Compiler suite1,765 / 6,43427.4%
Conformance suite1,594 / 5,61728.4%

Types

Match with the tsc .types baseline.

Compiler suite1,972 / 6,43430.6%
Conformance suite1,471 / 5,61726.2%

Every option variant

Many TypeScript tests run under several compiler options. This opt-in report expands each one. The failures are mostly ES5 downlevel transforms and .d.ts emit.

Measured 14 October 2026

Expanded option variants

Every stored option variant of every case: 14,819 identities.

JavaScript12,979 / 13,80394.0%
Declarations12,399 / 13,80389.8%

1,016 identities without an oracle are skipped in each lane.

Type-check accuracy

Recall and precision count individual diagnostics over every option variant, so they are stricter about coverage and looser about wording than the whole-case diagnostics lane.

Measured 14 October 2026

Type-check recall

Share of expected diagnostics found, matched per (file, line, code) over every option variant.

Compiler suite65.6%
Conformance suite73.2%

Type-check precision

Share of reported diagnostics that tsc also reports, same matching rule.

Compiler suite89.1%
Conformance suite90.5%

Language server

The language server is tested against the TypeScript fourslash suite, the same editor-behaviour tests tsc uses. The table covers the five supported operations. Across the full inventory, 3,955 cases are skipped, including unsupported operations; skips never count as passes.

Measured 14 October 2026
OperationPassedFailedSkippedPass rateShare
QuickInfo (hover)3112181058.8%
Completions860271076.0%
Go-to-definition21300100%
Find-all-references151196043.5%
Signature help12322784.8%
Total1,6587071770.1%

Where the work is

What the failing cases have in common, lane by lane.

  • Default emit matches every case that has a JavaScript oracle. The remaining emit work is in the expanded variants: ES5 downlevel transforms and declaration files.
  • Diagnostics are the active front. A whole-case pass needs every message and column to match, which is where the remaining 1,515 compiler and 1,827 conformance failures come from: 3,342 mismatches in total.
  • Language server gaps are type inference. Hover misses are contextual typing, generics, JSDoc type tags and cross-file aliases. Completion misses are auto-imports and cross-file members.
  • Symbols and declaration emit are early.

Method

The test corpus is the TypeScript repository's own cases and reference baselines, vendored unmodified under tests/. Wave by wave results are in docs/verified-waves.md.

  • Pass rate is passed / (passed + failed). Skipped cases are excluded and never counted as passes.
  • The oracle is chosen from the effective compiler options, never from whichever candidate output happens to match.
  • Results are cached by a hash of the compiler sources, so published numbers are always taken with --no-cache.
  • Each wave records newly passing cases, lost passes and unchanged skips before it is merged.
Reproduce any row
cargo build --release -p tsc_rs_harness

# JavaScript emit and diagnostics (drop --baseline errors for emit)
target/release/baseline-report --suite compiler --baseline errors --no-cache
target/release/baseline-report --suite conformance --baseline errors --no-cache

# Symbols
target/release/baseline-report --suite compiler --baseline symbols --no-cache

# Type-check recall and precision (run the full corpus)
target/release/typecheck-report --suite compiler --json

# Language server
target/release/lsp-report --op all --json
See the wave logHow the harness worksRaw metrics snapshot