Termination icon indicating copy to clipboard operation
Termination copied to clipboard

Different behavior on terminal vs Termination

Open saadq opened this issue 8 years ago • 1 comments

I'm getting different results when running npm test on my regular terminal:

screen shot 2017-06-16 at 6 18 34 am

vs running it in Termination:

screen shot 2017-06-16 at 6 18 15 am

The tests always pass when I run it in the terminal, however it seems to fail when using Termination. IDK how familiar you are with front-end tools like transpilers, but it looks like babel is failing when the test script is run in Termination.

Is it possible that setting ENV variables not work in Termination? My test script basically does NODE_ENV=test and then runs ava in my src directory. If you have any ideas on why there would be different behavior, please let me know.

Also, let me know if there's any other information I can provide.

saadq avatar Jun 16 '17 10:06 saadq

Okay, this is really weird but changing NODE_ENV=test to BABEL_ENV=test seemed to fix the issue. In case you're unfamiliar with babel, it first looks for a BABEL_ENV and then looks for a NODE_ENV. So my original thing should have worked which is why there is no issue when using it in a normal terminal. I'm not sure why Termination behaves differently.

But if you don't have anything to add, you can close this issue.

saadq avatar Jun 16 '17 10:06 saadq