Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6eb3f33

Browse files
author
Maël Nison
committedSep 28, 2018
Adds an e2e test for when using PnP
1 parent 63152ef commit 6eb3f33

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed
 

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cache:
99
directories:
1010
- .npm
1111
before_install:
12-
- curl -o- -L https://yarnpkg.com/install.sh | bash
12+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --nightly
1313
- export PATH="$HOME/.yarn/bin:$PATH"
1414
install: true
1515
script:

‎appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ platform:
3636
install:
3737
- ps: Install-Product node $env:nodejs_version $env:platform
3838
- ps: |
39-
(New-Object Net.WebClient).DownloadFile("https://yarnpkg.com/latest.msi", "$env:temp\yarn.msi")
39+
(New-Object Net.WebClient).DownloadFile("https://nightly.yarnpkg.com/latest.msi", "$env:temp\yarn.msi")
4040
cmd /c start /wait msiexec.exe /i $env:temp\yarn.msi /quiet /qn /norestart
4141
4242
build: off

‎tasks/e2e-installs.sh

+12
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,17 @@ npx create-react-app test-app-nested-paths-t3/aa/bb/cc/dd
229229
cd test-app-nested-paths-t3/aa/bb/cc/dd
230230
yarn start --smoke-test
231231

232+
# ******************************************************************************
233+
# Test when PnP is enabled
234+
# ******************************************************************************
235+
cd "$temp_app_path"
236+
echo $OSTYPE
237+
YARN_PLUGNPLAY_OVERRIDE=1 npx create-react-app test-app-pnp
238+
cd test-app-pnp
239+
! exists node_modules
240+
exists .pnp.js
241+
yarn start --smoke-test
242+
yarn build
243+
232244
# Cleanup
233245
cleanup

0 commit comments

Comments
 (0)
Please sign in to comment.