Skip to content

Feature/test scripts coverage#136

Open
peasandwell wants to merge 2 commits into
HeathWallace:masterfrom
peasandwell:feature/test-scripts-coverage
Open

Feature/test scripts coverage#136
peasandwell wants to merge 2 commits into
HeathWallace:masterfrom
peasandwell:feature/test-scripts-coverage

Conversation

@peasandwell

@peasandwell peasandwell commented Mar 20, 2018

Copy link
Copy Markdown
Contributor

Description

Adds config files for running npm run test-watch -- --coverage to get a Jest coverage of unit testing. Now it shows where there are gaps for us to fill in with proper unit testing.

I've omitted several files from the coverage tool, including individual components as we feel that they are not suitable for test scripts at this time. However if we change our minds in the future we can happily do so.

Issues fixed

This addresses #83 as much as I can do for the time being. I think anything else requires someone that 100% understands the actions/reducers/APIs.

Checklist

  • npm test returns no warnings or errors.

@peasandwell peasandwell mentioned this pull request Mar 20, 2018
Comment thread package.json
"stylelint-config-recommended": "^2.1.0"
},
"jest": {
"collectCoverageFrom": [

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could this be inverted so for now it only calculates coverage in the directory we've tested?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants