Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Added cache clear to e2e scripts #2400
Yarn is caching old react-scripts when running the e2e tests, which means old versions are being used during the build process. Fine for CI where each build is on a clean machine but breaks e2e in unforeseen ways on local machines.
This might be related to yarnpkg/yarn#2165
The fix is to run
Issue is fixed in latest version of yarn, so decide best thing to do is just install the latest version of yarn. Once AppVeyor updates their yarn, the
AppVeyor issue: appveyor/ci/issues/1576
However, now there is a new issue related to #2030. Might be caused by using the latest version of yarn on windows machines.
Could either wait for the fix or try change this PR to use the work around gaearon mentioned.
# Workaround for https://github.com/yarnpkg/yarn/issues/2591 case "$(uname -s)" in *CYGWIN*|MSYS*|MINGW*) yarn=yarn.cmd;; *) yarn=yarn;; esac eval $yarn run build