Skip to content

Travis CI slow execution + array.includes is not a function #1524

Description

@alansouzati

https://travis-ci.org/grommet/grommet/builds/156392643#L1757

In my recent build for Grommet using Jest (:yay) I noticed the following console error:

ERROR: TypeError: config.coverageReporters.includes is not a function
        STACK: TypeError: config.coverageReporters.includes is not a function
    at CoverageReporter.onRunComplete (/home/travis/build/grommet/grommet/node_modules/jest-cli/build/reporters/CoverageReporter.js:70:33)
    at /home/travis/build/grommet/grommet/node_modules/jest-cli/build/TestRunner.js:441:14
    at Array.forEach (native)
    at ReporterDispatcher.onRunComplete (/home/travis/build/grommet/grommet/node_modules/jest-cli/build/TestRunner.js:440:21)
    at /home/travis/build/grommet/grommet/node_modules/jest-cli/build/TestRunner.js:220:33
    at process._tickCallback (internal/process/next_tick.js:103:7)

Maybe we can replace includes by indexOf to avoid compatibility issues?

If you guys agree I can send a PR for that, otherwise what would be the recommended fix for this?

On a side note, I've noticed that my tests are taking a significantly longer time to execute in Travis when comparing to my local system. Is that expected?

This travis job is configured to use Node 5 and Jest test branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions