Use npm@7 for CRA e2e test (#13724)
This commit is contained in:
parent
1f79784a99
commit
fce0cffc30
@ -17,6 +17,9 @@ set -x
|
|||||||
git clone --depth=1 https://github.com/facebook/create-react-app.git tmp/create-react-app
|
git clone --depth=1 https://github.com/facebook/create-react-app.git tmp/create-react-app
|
||||||
cd tmp/create-react-app || exit
|
cd tmp/create-react-app || exit
|
||||||
|
|
||||||
|
# Update npm to v7
|
||||||
|
npm i -g npm@7
|
||||||
|
|
||||||
#==============================================================================#
|
#==============================================================================#
|
||||||
# TEST #
|
# TEST #
|
||||||
#==============================================================================#
|
#==============================================================================#
|
||||||
@ -42,14 +45,10 @@ do
|
|||||||
(cd "$d"; node "$bump_deps")
|
(cd "$d"; node "$bump_deps")
|
||||||
done
|
done
|
||||||
|
|
||||||
# Don't use Yarn 2
|
|
||||||
export YARN_IGNORE_PATH=1
|
|
||||||
|
|
||||||
startLocalRegistry "$PWD"/../../verdaccio-config.yml
|
startLocalRegistry "$PWD"/../../verdaccio-config.yml
|
||||||
yarn install
|
npm install
|
||||||
|
|
||||||
# Test
|
# Test
|
||||||
CI=true yarn test
|
CI=true npm run test
|
||||||
|
|
||||||
unset YARN_IGNORE_PATH
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user