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

CLI: Implement --require option #1271

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

trentmwillis
Copy link
Member

This PR implements a --require option for the CLI. It allows for any number of dependencies or files to be required prior to the test suite run actually starting.

Fixes #1222

Copy link
Contributor

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Awesome! This is great, and unlocks some really nice patterns...

@trentmwillis trentmwillis merged commit c6365ed into qunitjs:master Mar 6, 2018
@trentmwillis trentmwillis deleted the require-flag branch March 6, 2018 18:30
@@ -0,0 +1,6 @@
const resolve = require( "resolve" );
Copy link
Member

@Krinkle Krinkle Mar 6, 2018

Choose a reason for hiding this comment

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

Not related to this PR, but we seem to have grown a fair number of files in bin/ that are not intended as standalone CLI entry points. We should consider moving these to src/ instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 agreed, though I would like to ensure we keep some clear separation between CLI code and library code (just means we likely need src/cli or something)

@jdalton
Copy link

jdalton commented Mar 27, 2018

This is so cool! This should mean esm support can be enabled with qunit --require esm ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants