这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@GantMan
Copy link
Member

@GantMan GantMan commented Feb 26, 2018

Node will inject its own bin to the front of $PATH, as identified in #175

This simply moves that injection to the back to prefer global over anything node_modules/.

Tests included. I attempted to go a wrong way first, and that left strange artifacts I had to clean up. Squash to kill the noise


Closes: #175

test('errors with message when an improper semver is sent', async () => {
expect(await checkCLI(badSemver, context)).toBe(`Invalid semver rule ${badSemver.semver}`)
})

Copy link
Member Author

Choose a reason for hiding this comment

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

I identified a missing test, and added it as lagniappe in this PR. Sorry for the distraction, but I'm always trying to up the % coverage.

@codecov
Copy link

codecov bot commented Feb 26, 2018

Codecov Report

Merging #178 into master will decrease coverage by 0.02%.
The diff coverage is 80%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #178      +/-   ##
==========================================
- Coverage   82.87%   82.84%   -0.03%     
==========================================
  Files          32       33       +1     
  Lines         613      618       +5     
  Branches      103      104       +1     
==========================================
+ Hits          508      512       +4     
- Misses         69       70       +1     
  Partials       36       36
Impacted Files Coverage Δ
src/extensions/functions/checkCLI.ts 92.85% <100%> (+8.24%) ⬆️
src/extensions/functions/quirksNodeModules.ts 75% <75%> (ø)
src/extensions/functions/solidarityReport.ts 88.88% <0%> (-11.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 63d996f...d710c96. Read the comment docs.

@GantMan
Copy link
Member Author

GantMan commented Feb 27, 2018

closing in favor of #179

this is the exact same code but for some reason there's a crash in windows, not sure why or what.

@GantMan GantMan closed this Feb 27, 2018
@GantMan GantMan deleted the fight-node-modules branch January 21, 2019 16:41
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