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

Catch SIGINT #332

Merged
merged 6 commits into from
Dec 2, 2016
Merged

Catch SIGINT #332

merged 6 commits into from
Dec 2, 2016

Conversation

julianvmodesto
Copy link
Contributor

Giving #328 a shot 🙏

Copy link
Contributor

@jaredmcdonald jaredmcdonald left a comment

Choose a reason for hiding this comment

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

looks good to me! one little comment about the test, @delambo @ccpricenytimes @tizmagik what do you think?

child.stdout.on('data', (data) => {
if (data.includes('✅ Done building')) {
finishedBuild = true;
resolve(finishedBuild);
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty minor, but maybe this would be more readable if you rejected the promise here, and then later asserted that the promise is not rejected?

@ccpricenytimes
Copy link
Contributor

This is great @julianvmodesto

Thanks for writing e2e tests for this!

For some reason, async exec in shelljs doesn't resolve the exit code correctly, so I
can't use that for the tests...
@ccpricenytimes ccpricenytimes merged commit 8683fbf into nytimes:master Dec 2, 2016
@julianvmodesto julianvmodesto deleted the catch-sigint branch December 4, 2016 18:43
tizmagik added a commit that referenced this pull request Dec 14, 2016
* master: (35 commits)
  creates local copies of packages so e2e tests use latest code (#345)
  adds style and script linter packages (#344)
  now using npm version to check for kyt-cli updates (#337)
  Adds kyt version option to setup command (#343)
  make lint-script command; lint now runs scripts and style (#339)
  Adds bootstrap scripts (#341)
  fixes test coverage command (#342)
  Run test from root directory (#336)
  Monorepo (#330)
  [ci skip] document Jest/Watchman issue and common workaround (#334)
  Catch SIGINT (#332)
  Fixes e2e tests (#326)
  Removes deprecated reflect eslint rule (#325)
  Upgrade Linter dependencies (#289)
  [doc]fix path of eslintrc and stylelintrc (#321)
  Update unit tests for changes made to resolve #303 (#318)
  adds ISSUE_TEMPLATE (#317)
  Adds rfc template (#316)
  document possible kyt setup repository url formats (#314)
  Overwrites default npm init test script on setup (#293)
  ...

# Conflicts:
#	.travis.yml
#	e2e_tests/tests/cli.test.js
#	package.json
#	packages/kyt-cli/cli/actions/setup.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants