I am using travis-ci for deployment of my open source projects. Without changes in my code, since yesterday all my builds fail to run unit tests with the next error:
~/w/some-package ❯❯❯ yarn test
yarn run v1.13.0
$ jest
FAIL test/unit/lib/sometest.js
● Test suite failed to run
TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>'
at _default (node_modules/jest-util/build/createProcessObject.js:85:34)
My build configuration uses the latest node and just runs the tests
language: node_js
node_js:
- node
script:
- yarn test
Was there any change of dependencies of travis-ci machines? is there any compatibility in between versions of node and jest?
This seems to be an incompatibility in between node 11.11.0
that is the latest stable release and jest versions before 24.3.0
.
There are currently 2 solutions:
yarn upgrade jest --latest
language: node_js
node_js:
- "10.15.3"
script:
- yarn test
Upgrading to jest 24.3.1
solves the issue as it was fixed in the version 24.3.0.
The pre-24.3.x
version are incompatible with node 11.11.0
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With