Closed chintan-golakiya closed 1 year ago
hey good catch Chintan, thanks for the heads up.
You're right - the only thing TESTENV is used for is the npm run testb
command, which runs the tests with the builds file. That is important to catch anything breaking in the build somehow.
The current setup could use some work, and I'd welcome alternative ways to do this.
yeah - as long as npm run test
runs ./src
and npm run testb
runs ./builds - and I don't have to think about it, any solution you prefer sounds good to me.
cheers
added to 7.3.0 thanks
while running
npm test
on windows, it doesn't work. Here is this error:Removing
TESTENV=dev
frompackage.json
solves issue for me. To solve this issue for all I think one of following approach can help. 1) RemoveTESTENV=dev
frompackage.json
as this does not work in all OS and setting environment variable in.env
could be mentioned incontributing.md
file 2) RemoveTESTENV=dev
frompackage.json
as this does not work in all OS and setting environment variable usingprocess.env.TESTENV='dev';
in all*.test.js
files.please share which could be good solution, I would like contribute in required changes for this.