nestjs/nest
A progressive TypeScript framework for Node.js backends: from a small API in one file to efficient, scalable, enterprise-grade systems 🚀
bbbfaf1 ↗TypeScript★ 77,085 (+214 today)lists: typescriptvitest-dedup 0.10.0
- Tests analyzed
- 7,252
- in 361 files
- Compared
- 99.1%
- 65 tests could not be compared
- Findings
- 329
- 323 warnings
- Exact duplicates
- 6
- 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
2 tests have identical bodies under an equivalent context.
FileTypeValidator > isValid > should return true when the file buffer matches the specified regexp
packages/common/test/pipes/file/file-type.validator.spec.ts:94–108 ↗FileTypeValidator > isValid > should return true when the file buffer matches the specified regexp
packages/common/test/pipes/file/file-type.validator.spec.ts:174–188 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
FileTypeValidator > isValid > should return false when no buffer is provided
packages/common/test/pipes/file/file-type.validator.spec.ts:142–152 ↗FileTypeValidator > isValid > should return false when no buffer is provided
packages/common/test/pipes/file/file-type.validator.spec.ts:162–172 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
NestContainer > addModule > should throw an exception when metatype is not defined
packages/core/test/injector/container.spec.ts:169–171 ↗NestContainer > replaceModule > should throw an exception when metatype is not defined
packages/core/test/injector/container.spec.ts:238–240 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
NestContainer > addModule > should add global module when module is global
packages/core/test/injector/container.spec.ts:173–177 ↗NestContainer > replaceModule > should add global module when module is global
packages/core/test/injector/container.spec.ts:242–246 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
InterceptorsConsumer > transformDeferred > when next() result is plain value > should return Observable
packages/core/test/interceptors/interceptors-consumer.spec.ts:211–217 ↗InterceptorsConsumer > transformDeferred > when next() result is Promise > should return Observable
packages/core/test/interceptors/interceptors-consumer.spec.ts:220–226 ↗
Findings by rule
- Parameterization candidate197
- Cross-file duplicate108
- Near-duplicate test9
- Duplicate test6
- Duplicate test name6
- Duplicate suite3
Not compared
- context could not be resolved53
- order-dependent-state12
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-19 | 7 | bbbfaf1 | 0.10.0 | 7,252 | 99.1% | 329 | 6 |
| 2026-11-17 | 11 | 09b656c | 0.10.0 | 7,152 | 99.1% | 329 | 6 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/nestjs/nest.git
cd nest
git checkout bbbfaf1765308826a581a75424a11d0f3e59521a
npx [email protected] .