3e1e7a1c28
1. previous iteration was mistakenly using the Shell task and that was not compatible with react-scripts, resulting in missing logs. 1. fix is to use Bash to run all commands
642 B
642 B
Overview of CI setup
Issues found and solutions
Environment variables in scripts sections is not cross-platform friendly
-
Option 1
- install
cross-envnpm package - use
cross-envin npm script - https://github.com/facebook/create-react-app/issues/1137#issuecomment-279180815
- install
-
Option 2
- add
--coverageflag so test will run only once without needing to setCI=true - no need for extra package, cross platform support
- https://github.com/facebook/create-react-app/issues/1137#issuecomment-279191193
- add
Logs are cut off on Windows agent when using shell
- make sure to use Bash task and not shell