Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis/Jest: TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>'

All my jest typescript tests fail in my travis pipeline throwing the following error:

TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>' 

This happened suddenly without me changing anything particular in the code. And locally everything works fine.

Any ideas what could be happening ?

like image 531
FabienChn Avatar asked Mar 08 '19 09:03

FabienChn


1 Answers

That is a bug that came with node v11.11. You can downgrade to v11.10 or wait for the fix which facebook has already pushed (jest error in Node version over 11.11).

If your problem is TravisCI related then you can set a fixed version which works:

node_js:   - "11.10.1" 
like image 56
alknows Avatar answered Sep 29 '22 10:09

alknows