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
Breaking: Upgrade yeoman dependencies to latest #101
Conversation
5853fd6
to
e8591e7
Compare
Ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Just a few minor comments.
tests/app/index.js
Outdated
it("should run the eslint:rule generator", function() { | ||
assert.ok(this.spy.calledOnce); | ||
it("does not blow up", () => { | ||
assert.ok(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this test isn’t doing anything. Maybe a placeholder you meant to update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added real test for this.
Significantly modernizes code and tests. Significantly improves test coverage.
With the latest yeoman dependencies, I was seeing errors under Node 12/14, unless NPM 7 was used to install dependencies: - Uncaught Error: Cannot find module 'rimraf' - Uncaught Error: Cannot find module 'mkdirp'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
Significantly modernizes code and tests.
Significantly improves test coverage.
TODO:
-
Uncaught Error: Cannot find module 'rimraf'
-
Uncaught Error: Cannot find module 'mkdirp'
- Recreating package-lock.json helped, but I was still seeing errors on Node 12/14 until I switched CI to use NPM v7 when installing dependencies. This is the same thing the yeoman-environment does on its CI configuration.
Fixes #43.
Fixes #86.
CC: @platinumazure