-
Notifications
You must be signed in to change notification settings - Fork 116
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
chore: update tooling #241
Conversation
d9608a2
to
f4102ea
Compare
f4102ea
to
4f05353
Compare
BREAKING CHANGE: support for node 8 was dropped
jest.mock('fs'); | ||
|
||
describe('config', () => { | ||
describe('load', () => { |
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 a test for parsing toml
await install.run('.'); | ||
|
||
expect(cp.exec).toHaveBeenCalledTimes(1); | ||
expect(cp.exec).toHaveBeenCalledWith( |
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.
Should run npm i
on the current directory
); | ||
}; | ||
} | ||
|
||
exports.listen = function(port, static, timeout) { | ||
exports.listen = function (port, isStatic, timeout) { |
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.
For some reason jest
tries to transpile static
as a reserved keyword which caused the serve
test to fail.
Instead of messing about with jest config files, just renamed the argument.
var module = path.join(process.cwd(), dir, chunk); | ||
delete require.cache[require.resolve(module)]; | ||
} | ||
}, | ||
stopServer: () => server.close(), |
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.
Exported this to be used in the test
"rimraf": "^3.0.2" | ||
}, | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": ">=10.0.0" |
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.
Breaking change (we need node 10 to update to the latest dependencies).
Since we're planning on doing a major version this should be fine.
BREAKING CHANGE: support for node 8 was dropped
Related to #240