-
Notifications
You must be signed in to change notification settings - Fork 343
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
feat(cli): suggest matching commands #1763
Conversation
Thanks for the feature request and patch. Could you add a unit test to the following file? |
As you can see from the CI build output, the new test is failing: https://travis-ci.org/mozilla/web-ext/jobs/615041182 Please update the test to make sure that it passes. |
@Rob--W can you give me a better picture regarding how it should be refactored as per the context? |
I think that the relevant output is not an instance of UsageError. Try checking the program's output instead, like this: web-ext/tests/unit/test.program.js Lines 103 to 105 in f9929da
|
Could you revert the change to package-lock.json? The audit failure has been fixed on master, and if you rebase your patch on master, then that failure should go away. The build still fails with the latest version of your patch. I took a closer look, and see why. Your unit test uses the Here are examples:
Add a new test, e.g. with the file name |
714776a
to
b45a2f7
Compare
b45a2f7
to
139149f
Compare
488067e
to
08fccb8
Compare
08fccb8
to
b946be6
Compare
Have you run the tests locally? The test is failing because the And the linting fails because the test imports symbols that it does not use. Remove unused imports and import `assert to resolve these errors. |
Thanks for the feature request and patch! |
closes #1762