vercel-labs/scriptc
TypeScript-to-Native Compiler
eb3a646 ↗TypeScript★ 6,501 (+9 today)lists: typescriptvitest-dedup 0.9.0
- Tests analyzed
- 5,996
- in 821 files
- Compared
- 87%
- 781 tests could not be compared
- Findings
- 66
- 65 warnings
- Exact duplicates
- 1
- error severity
Top candidates
The largest findings, linked to the analyzed commit. Review them before changing any test: identical bodies can still run under different setups the analyzer does not model.
- Duplicate testerror
7 tests have identical bodies under an equivalent context; 7 tests form one cluster, reported as a single finding instead of 21 pairwise findings (spanning-set reporting stops at 4 members).
Node refuses: (() => { "use strict"; if (true) function f() {} })();
packages/compiler/src/frontend/early-errors.test.ts:50–57 ↗Node refuses (early targets): class C { #x; } console.log(#x in {});
packages/compiler/src/frontend/early-errors.test.ts:80–98 ↗Node refuses (await as an identifier): async () => { (a = await) => 0; };
packages/compiler/src/frontend/early-errors.test.ts:125–135 ↗Node refuses (arguments in a field initializer): class C { static x = arguments; } new C();
packages/compiler/src/frontend/early-errors.test.ts:165–172 ↗
and 3 more
- Duplicate test namewarning
2 tests in this file share the full title "the recorded libnode pack > beside refuses manifest file names outside the pack".
the recorded libnode pack > beside refuses manifest file names outside the pack
packages/compiler/src/node-islands/libnode.test.ts:108–119 ↗the recorded libnode pack > beside refuses manifest file names outside the pack
packages/compiler/src/node-islands/libnode.test.ts:121–139 ↗
- Parameterization candidatewarning
43 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 43 tests form one cluster, reported as a single finding instead of 903 pairwise findings (spa.
node-types: filesystem timestamps accept Date, Buffer, URL, and FileHandle inputs under @types/node
tests/harness/project-config.test.ts:169–181 ↗node-types: util.types supports native brands and predicate narrowing under @types/node
tests/harness/project-config.test.ts:197–209 ↗node-types: util.styleText supports stored calls and standard streams under @types/node
tests/harness/project-config.test.ts:211–223 ↗node-types: events.once over typed EventEmitter listeners under @types/node
tests/harness/project-config.test.ts:243–255 ↗
and 39 more
- Parameterization candidatewarning
10 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 10 tests form one cluster, reported as a single finding instead of 45 pairwise findings (span.
node-types: filesystem capacity supports typed number and BigInt results under @types/node
tests/harness/project-config.test.ts:37–53 ↗node-types: Headers, Request and Response members typed by undici-types run natively
tests/harness/project-config.test.ts:55–74 ↗node-types: fetch's string | URL | Request input and a custom fetch cast to typeof fetch
tests/harness/project-config.test.ts:76–95 ↗node-types: http header arrays and server.address() follow @types/node's types
tests/harness/project-config.test.ts:130–149 ↗
and 6 more
- Parameterization candidatewarning
7 tests share identical structure but differ only in literal values; consolidate into one `test.each` table that keeps every case as its own row; 7 tests form one cluster, reported as a single finding instead of 21 pairwise findings (spanni.
Node accepts: class C { static { function s() {} function s() {} } } new C();
packages/compiler/src/frontend/early-errors.test.ts:35–48 ↗Node accepts (early targets): class C { #x = 1; m() { class D { #x = 2; y = this.#x; } return new D().y; } } new C().m();
packages/compiler/src/frontend/early-errors.test.ts:59–78 ↗Node accepts (await as an identifier): async function f() { (() => { var await = 1; return await; })(); } f();
packages/compiler/src/frontend/early-errors.test.ts:105–123 ↗Node accepts (arguments outside a field initializer): class C { [arguments2] = 1; } new C();
packages/compiler/src/frontend/early-errors.test.ts:155–163 ↗
and 3 more
Findings by rule
- Parameterization candidate64
- Duplicate test1
- Duplicate test name1
Not compared
- context could not be resolved659
- imported helper unreadable122
No finding is reported for these tests, which does not mean they have no duplicates.
Appearances
| Day | Rank | Commit | Version | Tests | Compared | Findings | Duplicates |
|---|---|---|---|---|---|---|---|
| 2026-11-05 | 14 | eb3a646 | 0.9.0 | 5,996 | 87% | 66 | 1 |
| 2026-11-03 | 14 | 0db50d6 | 0.9.0 | 5,754 | 86.8% | 60 | 1 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/vercel-labs/scriptc.git
cd scriptc
git checkout eb3a64671d7e4f481a5e1f99c5442c8ad040d390
npx [email protected] .