Skip to content

fix(unit): remove direct Mocked and Stub exports to fix TS2300#1020

Merged
omermorad merged 1 commit into
masterfrom
fix/unit-ts2300-duplicate-identifier
May 6, 2026
Merged

fix(unit): remove direct Mocked and Stub exports to fix TS2300#1020
omermorad merged 1 commit into
masterfrom
fix/unit-ts2300-duplicate-identifier

Conversation

@omermorad

Copy link
Copy Markdown
Collaborator

Summary

  • Remove Mocked and Stub direct exports from @suites/unit barrel to fix TS2300 duplicate identifier errors when skipLibCheck: false
  • Add skipLibCheck: false type-check to jest and sinon E2E scenarios to prevent regression
  • Add stable release type to prepare-release workflow

Closes #1017

Remove Mocked and Stub from @suites/unit barrel to eliminate duplicate
identifier errors when skipLibCheck is false. These types are provided
by adapter augmentation (declare module) and should not also be
directly exported.

Add skipLibCheck: false type-check to jest and sinon e2e scenarios.
Add stable release type to release workflow.

Closes #1017
@codecov

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.56%. Comparing base (77a6f85) to head (bd41584).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1020   +/-   ##
=======================================
  Coverage   93.56%   93.56%           
=======================================
  Files          26       26           
  Lines         653      653           
  Branches      107      107           
=======================================
  Hits          611      611           
  Misses         33       33           
  Partials        9        9           
Flag Coverage Δ
core.unit 93.44% <ø> (ø)
di.inversify 93.61% <ø> (ø)
di.nestjs 87.25% <ø> (ø)
doubles.jest 100.00% <ø> (ø)
doubles.sinon 100.00% <ø> (ø)
doubles.vitest 100.00% <ø> (ø)
unit 84.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@omermorad omermorad merged commit 0367eb4 into master May 6, 2026
47 checks passed
@omermorad omermorad deleted the fix/unit-ts2300-duplicate-identifier branch May 6, 2026 17:25
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.

Duplicate identifier 'Stub'/'Mocked' in 3.1.0 with skipLibCheck: false

1 participant