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

Smoke test dependents #29

Merged
merged 4 commits into from
Aug 9, 2019
Merged

Smoke test dependents #29

merged 4 commits into from
Aug 9, 2019

Conversation

vweevers
Copy link
Owner

@vweevers vweevers commented Aug 3, 2019

This makes it easier to judge remark dependency updates (like the 4 PRs we have open now), which frequently have "to be safe" major bumps that don't actually affect us.

@vweevers vweevers added the test Improvements or additions to tests label Aug 3, 2019
@vweevers vweevers requested a review from ralphtheninja August 3, 2019 09:36
t.plan(2)

// Clone fully because we need git history for remark-git-contributors
gitPullOrClone(url, cwd, { depth: Infinity }, (err) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice one!

const stdio = ['ignore', process.stderr, process.stderr, 'ipc']
const cli = path.join(__dirname, 'cli.js')

cp.fork(cli, { cwd, stdio }).on('exit', function (code) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any special reason for .fork than using .spawn? Just curious.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I only chose it because it has a simpler API if it's JS you want to execute. Doesn't really matter.

@vweevers vweevers merged commit de87350 into master Aug 9, 2019
@vweevers vweevers deleted the smoke-test-dependents branch August 9, 2019 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Improvements or additions to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants