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

feat: env/isTest #10

Merged
merged 1 commit into from
Sep 6, 2019
Merged

feat: env/isTest #10

merged 1 commit into from
Sep 6, 2019

Conversation

lidel
Copy link
Member

@lidel lidel commented Sep 5, 2019

This PR unblocks ipfs/js-ipfs#2304

Adds isTest check to tell if runtime is part of tests:

process.env.NODE_ENV === 'test'

It does it in a way that works in browser without process.env polyfills

Adds check to tell if runtime is part of tests

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
@hugomrdias hugomrdias merged commit 481aab1 into master Sep 6, 2019
@hugomrdias hugomrdias deleted the feat/isTest branch September 6, 2019 14:15
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