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

fix: Support jumping between node.js versions #7

Merged
merged 1 commit into from
Dec 22, 2019
Merged

Conversation

coreyfarrell
Copy link
Member

Use NODE_PATH and use bare filename for --require if it is needed in
node.js < 12 or if node.js 12+ would otherwise require quoting the
require path. This should avoid a crash when node-preload is setup in
node.js 12 but then a test is run under node.js < 12. It should also
ensure compatibility when setup is performed in node.js < 12 and tests
are later run under node.js 12+.

Ref istanbuljs/nyc#1246

Use `NODE_PATH` and use bare filename for `--require` if it is needed in
node.js < 12 or if node.js 12+ would otherwise require quoting the
require path.  This should avoid a crash when `node-preload` is setup in
node.js 12 but then a test is run under node.js < 12.  It should also
ensure compatibility when setup is performed in node.js < 12 and tests
are later run under node.js 12+.

Ref istanbuljs/nyc#1246
@coreyfarrell coreyfarrell merged commit 68950a0 into master Dec 22, 2019
@coreyfarrell coreyfarrell deleted the version-jump branch December 22, 2019 20:56
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.

1 participant