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

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

Build:
DEFAULT BRANCH: master
Ran 22 Nov 2025 10:48PM UTC
Files 16
Run time 0s
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.1

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

238 of 238 relevant lines covered (100.0%)

70.87 hits per line

Source Files on job bd1928d0-f777-4eca-ba76-b48fa2b40b79.1
  • 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 Build 0
  • b6d623dc on github
  • Prev Job for on master (#1d319c9a-f854-4533-be79-bcf424e9533b.1)
  • Next Job for on master (#f313de27-ae67-4a57-8c7f-7cafe4b5fa21.1)
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