Skip to content

Add test for check_node, check_yarn tasks #2457

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

Merged
merged 1 commit into from
Feb 11, 2020
Merged

Add test for check_node, check_yarn tasks #2457

merged 1 commit into from
Feb 11, 2020

Conversation

jbielick
Copy link
Contributor

Purpose

A valid semver engine version could be an illformed gem requirement, which raising an exception during the parsing of this value from the package.json in either of these tasks.

This caught me by surprise and I would have hoped the test suite would catch it, so I've added two tests—one for each of the check_ rake tasks. See the failure in the build for more info.

Approach

Add a test that fails when the engine version in package.json fails to parse in ruby.

a valid semver engine version could be an illformed gem requirement,
which raising an exception during the parsing of this value from the
package.json in either of these tasks.
@jakeNiemiec jakeNiemiec changed the base branch from master to better-rake-checks February 11, 2020 22:26
@jakeNiemiec jakeNiemiec merged commit 5f53e47 into rails:better-rake-checks Feb 11, 2020
@jbielick jbielick deleted the check_yarn_test branch February 12, 2020 00:14
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.

2 participants