Skip to content

fix(core): guard snapshot trigger methods against non-snapshot usage

f8ff2e5
Select commit
Loading
Failed to load commit list.
Open

feat(core,egg): add V8 startup snapshot lifecycle hooks and APIs #5856

fix(core): guard snapshot trigger methods against non-snapshot usage
f8ff2e5
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Apr 4, 2026 in 0s

85.31% (+0.04%) compared to 21b1a71

View this Pull Request on Codecov

85.31% (+0.04%) compared to 21b1a71

Details

Codecov Report

❌ Patch coverage is 86.17021% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.31%. Comparing base (21b1a71) to head (f8ff2e5).
⚠️ Report is 1 commits behind head on next.

Files with missing lines Patch % Lines
packages/egg/src/lib/snapshot.ts 16.66% 10 Missing ⚠️
packages/core/src/lifecycle.ts 94.87% 2 Missing ⚠️
packages/egg/src/lib/egg.ts 96.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #5856      +/-   ##
==========================================
+ Coverage   85.26%   85.31%   +0.04%     
==========================================
  Files         666      667       +1     
  Lines       13238    13323      +85     
  Branches     1535     1543       +8     
==========================================
+ Hits        11288    11366      +78     
- Misses       1819     1829      +10     
+ Partials      131      128       -3     

☔ 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.