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

chore: update tooling #241

Merged
merged 2 commits into from
Jul 14, 2020
Merged

chore: update tooling #241

merged 2 commits into from
Jul 14, 2020

Conversation

erezrokah
Copy link
Contributor

@erezrokah erezrokah commented Jul 13, 2020

BREAKING CHANGE: support for node 8 was dropped

Related to #240

@erezrokah erezrokah added the type: chore work needed to keep the product and development running smoothly label Jul 13, 2020
@erezrokah erezrokah force-pushed the chore/update_tooling branch from d9608a2 to f4102ea Compare July 13, 2020 17:45
@erezrokah erezrokah closed this Jul 13, 2020
@erezrokah erezrokah force-pushed the chore/update_tooling branch from f4102ea to 4f05353 Compare July 13, 2020 17:46
@erezrokah erezrokah deleted the chore/update_tooling branch July 13, 2020 17:47
@erezrokah erezrokah restored the chore/update_tooling branch July 13, 2020 17:47
BREAKING CHANGE: support for node 8 was dropped
@erezrokah erezrokah reopened this Jul 13, 2020
jest.mock('fs');

describe('config', () => {
describe('load', () => {
Copy link
Contributor Author

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(
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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(),
Copy link
Contributor Author

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"
Copy link
Contributor Author

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.

@erezrokah erezrokah requested a review from ehmicky July 13, 2020 17:56
@erezrokah erezrokah merged commit f558976 into master Jul 14, 2020
@erezrokah erezrokah deleted the chore/update_tooling branch July 14, 2020 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants