Commit Graph

3 Commits

Author SHA1 Message Date
apk 840388ff84 fix(tests): update formats.test.ts expectations and extend diff fixtures for reprism tokenizer
- javascript clonesCount 10→9: reprism merges one pair through enlarged clone
- rust clonesCount 4→6: reprism correctly detects two additional self-clones in file2.rs
- diff fixtures extended to 60+ shared lines so 50-token windows fit within the
  shared section, restoring the expected clonesCount: 1 for diff format
2026-05-12 20:11:56 +02:00
apk 64e471e2b0 test: raise coverage to 96%+ on @jscpd/finder and 98%+ on apps/jscpd
Adds 92 new tests (178 → 270 total) with zero source-file modifications:

- packages/finder: 13 new test files covering all reporters, subscribers,
  validators, hooks, utils, options, cloneFound, getFilesToDetect, and
  InFilesDetector; shared buildClone() factory helper
- apps/jscpd: 3 new test files (options-unit, print, store) plus extensions
  to formats, modes, and options integration tests
- vitest.config.ts added to both packages to restrict coverage.include
  to src/** only, eliminating bin/ and prism.js noise
- Fixes 3 tokenizer bugs (trailing space in format lookup, tokenization
  edge cases) uncovered by the new format fixture suite
- Adds fixture files for 40+ language formats to support formats.test.ts
2026-05-09 15:00:38 +02:00
Andrey Kucherenko 633a854335 refactor: 💡 add new branch to git repo 2020-04-29 19:14:00 +03:00