• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

migration-script-runner / msr-core / bd1928d0-f777-4eca-ba76-b48fa2b40b79
100%

Build:
DEFAULT BRANCH: master
Ran 22 Nov 2025 10:48PM UTC
Jobs 1
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Nov 2025 10:47PM UTC coverage: 98.913% (-1.1%) from 100.0%
bd1928d0-f777-4eca-ba76-b48fa2b40b79

push

circleci

Vova Lavrynovych
#41: Remove process.exit() from MigrationScriptExecutor

Major improvement to enable library usage in long-running applications.

Changes:
- Added IMigrationResult interface with success, executed, migrated, ignored, and errors fields
- Updated migrate() to return Promise<IMigrationResult> instead of Promise<void>
- Removed exit() method that called process.exit()
- Added getIgnored() helper method to track skipped migrations
- Updated all 16 MigrationScriptExecutor tests to validate result objects
- Updated documentation (README, API Reference, Getting Started guide)
- Added comprehensive library usage examples

Benefits:
- MSR can now be used as a library without killing the host process
- Better testability - no need to mock process.exit
- Structured error handling with detailed migration results
- Safe integration into Express, NestJS, and other web frameworks
- Process lifecycle control is caller's responsibility
- Backward compatible - CLI wrappers can still use process.exit based on result.success

35 of 38 branches covered (92.11%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 2 files covered. (100.0%)

238 of 238 relevant lines covered (100.0%)

70.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 bd1928d0-f777-4eca-ba76-b48fa2b40b79.1 22 Nov 2025 10:48PM UTC 16
98.91
Source Files on build bd1928d0-f777-4eca-ba76-b48fa2b40b79
  • Tree
  • List 16
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #BD1928D0...
  • b6d623dc on github
  • Prev Build on master (#1D319C9A...)
  • Next Build on master (#F313DE27...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc