Skip to content

Conversation

@shoter
Copy link
Contributor

@shoter shoter commented Jul 19, 2019

Proposed solution

Use cross_env library to handle setting environment variable for test script.

Previously it only worked probably on linux only-systems. It had
command NODE_ENV='test' which did not work under Windows.

Tradeoffs

There will be new dependency for the package which has no vulnerabilities.

Testing Done

I run yarn run test on Debian and on Windows 10 and it passed all 33 tests.

multiple environments

Previously it only worked probably on linux only-systems. It had
command `NODE_ENV='test'` which did not work under Windows.

I had used library cross-env in order to make it runnable under windows
@bokuweb
Copy link
Owner

bokuweb commented Jul 30, 2019

@shoter Sorry for late. Looks good. Thanks for your great work :)

@bokuweb bokuweb merged commit f7aa8a7 into bokuweb:master Jul 30, 2019
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