Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add runtime test that TypeScript imports are working #1473

Merged
merged 2 commits into from Feb 15, 2021

Conversation

shadowspawn
Copy link
Collaborator

Pull Request

Problem

We have tests that the TypeScript definitions are as intended through static analysis, but not that the expected exports from Commander are available at runtime.

Solution

Add a TypeScript test to the Jest tests that performs some simple checks that the expected imports are available at runtime. Mirrors tests for esm.

@shadowspawn
Copy link
Collaborator Author

For interest, but can safely be ignored, tests prompted partly by experimenting with removing default export of global Command. For a future version:

Copy link
Collaborator

@abetomo abetomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Feb 15, 2021
@shadowspawn shadowspawn merged commit c119028 into tj:develop Feb 15, 2021
@shadowspawn shadowspawn deleted the feature/test-imports branch February 17, 2021 08:45
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Mar 22, 2021
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.

None yet

2 participants