Skip to content

Conversation

@fredrikekelund
Copy link
Contributor

Related issues

Proposed Changes

@wojtekn asked (p1766602221612649-slack-C06DRMD6VPZ) why we dynamically import the runCommand functions in the CLI tests. When I dug into this, I quickly concluded that it's not necessary. Static imports yield better performance and better error propagation.

So, why did we use the dynamic imports previously? I believe it's because we used to call process.exit() in some of the CLI command implementations, and dynamically importing the functions helped work around that in the tests.

Testing Instructions

Unit tests should pass

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@fredrikekelund fredrikekelund requested review from a team, bcotrim and wojtekn January 2, 2026 12:13
@fredrikekelund fredrikekelund self-assigned this Jan 2, 2026
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.

2 participants