Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis build fails after eject - path to polyfills is broken #1600

Closed
razvanilin opened this issue Feb 20, 2017 · 1 comment
Closed

travis build fails after eject - path to polyfills is broken #1600

razvanilin opened this issue Feb 20, 2017 · 1 comment
Milestone

Comments

@razvanilin
Copy link

The builds were successful before the eject command, but now they are not passing and I get this error:

> [email protected] test /home/travis/build/razvanilin/depomo/client
> node scripts/test.js --env=jsdom
 FAIL  src/containers/App.test.js
  ● Test suite failed to run
    ENOENT: no such file or directory, stat '/home/travis/build/razvanilin/depomo/client/\config\polyfills.js'
      
      at Object.fs.statSync (fs.js:907:18)
      at Object.statSync (node_modules/graceful-fs/polyfills.js:297:22)
      at process._tickCallback (internal/process/next_tick.js:103:7)
Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.62s
Ran all test suites.
npm ERR! Test failed.  See above for more details.

The path to polyfills.js seems to be broken. My guess is that I build this app on windows environment and travis uses unix type OSes. My knowledge in how travis works are quite limited and I might be missing something really basic.

I also tried to find where the path is being used in the settings files but couldn't find anything on this matter.

Can somebody shine a light on this?

npm: 3.10.9
Windows 10

travis settings:

language: node_js
node_js:
  - "7"
cache:
  directories:
    - server/node_modules
    - client/node_modules
services: mongodb
script: cd server && npm install && npm test && cd ../client && npm install && npm test
@gaearon
Copy link
Contributor

gaearon commented Feb 20, 2017

I think the issue is that if you run eject on Windows, then it hardcodes Windows paths separators into package.json Jest config. You can fix locally by changing the separators in package.json.

The issue itself is tracked in #1498. You can help by submitting a PR fixing it.

@gaearon gaearon closed this as completed Feb 20, 2017
@gaearon gaearon added this to the 0.9.1 milestone Feb 20, 2017
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants