Skip to content

Jest coverage showing polyfills.js #987

Closed

Description

@rubenmoya

Hi! I just created a new application, and ejected it to use css-modules.

After adding a few tests and running npm test -- --coverage this is the result:

screen shot 2016-10-30 at 11 19 54

Should the polyfills.js file be there?

Activity

  1. added this to the 0.8.0 milestone on Oct 30, 2016
  2. fson commented on Oct 30, 2016

    @fson
    Contributor

    This was fixed by #961. To fix it in your ejected project, just add the following to your Jest config:

    "collectCoverageFrom": [
      "src/**/*.{js,jsx}"
    ],
  3. rubenmoya commented on Oct 30, 2016

    @rubenmoya
    Author

    Thank you @fson!

  4. locked and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions