You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests are using code from npm instead of code from pull request #5440
changed the title [-]Regression: Tests are using code from npm instead of code from pull request[/-][+]Tests are using code from npm instead of code from pull request[/+]on Oct 15, 2018
Activity
[-]Regression: Tests are using code from npm instead of code from pull request[/-][+]Tests are using code from npm instead of code from pull request[/+]Timer commentedon Oct 15, 2018
The tests are supposed to be using code from "npm" because the PR is published before the test are ran:
https://github.com/facebook/create-react-app/blob/f89385f7438f39750b762590ebd9729534e30190/tasks/e2e-behavior.sh#L90-L100
I suspect our registry override might be wiped out, or similar.
Timer commentedon Oct 15, 2018
https://travis-ci.org/facebook/create-react-app/jobs/441577719#L606-L709 this looks suspicious. Nothing but
yarn.lockshould be removed.brunolemos commentedon Oct 15, 2018
I made the wrong diagnostic about the problem because locally I ran jest directly so it didn't make this publish to the local npm.
I added a console.log to see the real test error on travis: https://travis-ci.org/facebook/create-react-app/jobs/441692012#L787-L797 (btw I wish it showed this by default):
FAIL fixtures/typescript/index.test.js (25.768s) ● Console console.error fixtures/typescript/index.test.js:7 { Error: Command failed: yarnpkg test --env node --ci FAIL src/App.test.ts ● Test suite failed to run Cannot find module './App' from 'App.test.ts' > 1 | import App from './App';It loaded
App.test.tsso it's using the correct code from the PR.But
App.test.tsis not being able to import./Appwhich is weird.brunolemos commentedon Oct 15, 2018
Adding
.disable-pnpfixed it 🤔🎉Timer commentedon Oct 15, 2018
Hmm, I'd like to figure out why this doesn't work with PnP (it should).