Skip to content

TypeError on Travis CIΒ #8070

@dherault

Description

@dherault

πŸ› Bug Report

On travis I get the following message:

$ npm test
> [email protected] test /home/travis/build/dherault/piano-keys
> jest --coverage
 FAIL  ./index.test.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)
----------|----------|----------|----------|----------|-------------------|
File      |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files |        0 |        0 |        0 |        0 |                   |
----------|----------|----------|----------|----------|-------------------|
Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.763s
Ran all test suites.
npm ERR! Test failed.  See above for more details.
The command "npm test" exited with 1.

To Reproduce

Submit any PR to https://github.com/dherault/piano-keys and open Travis from the PR.

Expected behavior

It should pass all tests on Travis like it does locally.

Link to repl or repo (highly encouraged)

https://github.com/dherault/piano-keys

Run npx envinfo --preset jest

Paste the results here:

  System:
    OS: Linux 4.4 Ubuntu 14.04.5 LTS, Trusty Tahr
    CPU: (2) x64 Intel(R) Xeon(R) CPU @ 2.30GHz
  Binaries:
    Node: 11.11.0 - ~/.nvm/versions/node/v11.11.0/bin/node
    Yarn: 1.3.2 - /usr/local/bin/yarn
    npm: 6.7.0 - ~/.nvm/versions/node/v11.11.0/bin/npm
  npmPackages:
    jest: ^24.1.0 => 24.1.0 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions