Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Added coverage support to jest preset #76

Merged
merged 3 commits into from
Mar 1, 2017
Merged

Added coverage support to jest preset #76

merged 3 commits into from
Mar 1, 2017

Conversation

lukaszgolder
Copy link
Contributor

No description provided.

Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukaszgolder
Copy link
Contributor Author

@eliperelman Done

Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great so far. A couple more changes; sorry for the back and forth, just want to make sure we tie up all the loose ends. :)

#### Yarn

```bash
❯ yarn test -- --coverage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes that they are running the command via a package script, which may not always be true. Let's change these particular scripts to:

❯ neutrino test --coverage

Then maybe mention something about a script target like:

{
  "scripts": {
    "coverage": "neutrino test --coverage"
  }
}

Thoughts?

@@ -69,6 +69,7 @@ Options:
--presets A list of Neutrino presets used to configure the build [array] [default: []]
--version Show version number [boolean]
--help Show help [boolean]
--coverage Collect test coverage information and generate report [boolean] [default: false]
--watch Watch source files for changes and re-run tests [boolean] [default: false]
```

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a description of the --coverage flag at around line 95? The --watch flag has a similar description right above this.

@eliperelman eliperelman merged commit 24d7faa into neutrinojs:master Mar 1, 2017
@eliperelman
Copy link
Member

Tested this locally, works great! Published this to npm for neutrino and neutrino-preset-jest at v4.3.0.

@lukaszgolder lukaszgolder deleted the jest-coverage branch March 1, 2017 08:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants