Closed MartinFerret closed 8 months ago
This should be fixed with how SafeTest now uses cross-env. Can you pull the main branch and try again?
I've just pulled @kolodny but I still get that same issue. Is someone else experiencing this ?
What environment are you on?
I'm on windows 11. The error occurs when I run npm run safetest
Are you using command prompt, powershell, or a git-for-windows like shell?
I'm using git bash UI for Windows, exactly.
Can you try with branch fix-windows, you may need to change the OPT_URL
part of the script with just
cross-env OPT_URL=http://localhost:4200/angular-app jest ...
Undortunately it's not working as well, I get "cross'env is not an intern command...".
I've looked into it but can't solve it for now
You need to run npm install from the root of the repo
I did before running the script
So you should be able to remove and env from package.json and just hardcode everything in the setup-safetest
file
The fix-windows branch works, thanks a lot
Well, when running tests in examples/angular-app by
npm run safetest
, I get an error regarding the OPT_URL :OPT_URL' is not recognised as an internal or external command or external command, an executable program or a command file.
What is this OPT_URL and how to use it ? Is it possible to upgrade the documentation and give us some tips ?