Skip to content

Commit

Permalink
chore(storybook): skip coverage stats on storybook files
Browse files Browse the repository at this point in the history
All stories.js and story.js files are just for the storybook overview,
and similar to test files it is not appropriate to unit test them.
This change excludes all files with either of those names from the
coverage statistics.
  • Loading branch information
davidmason committed Apr 19, 2017
1 parent d21968f commit f3bf7b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/zanata-frontend/src/frontend/makefile
Expand Up @@ -51,7 +51,7 @@ storybook-static:

# Run the tests.
test:
yarn test --ignore-scripts=false
yarn test

# Run a server that implements some of the Zanata API with some dummy data.
# The server runs on localhost:7878 and has 0.5 to 5s of random latency.
Expand Down
3 changes: 2 additions & 1 deletion server/zanata-frontend/src/frontend/package.json
Expand Up @@ -136,7 +136,8 @@
"jest": {
"collectCoverageFrom": [
"app/**/*.{js,jsx}",
"!**/node_modules/**"
"!**/node_modules/**",
"!app/**/stor{y,ies}.js"
],
"coverageReporters": [
"cobertura",
Expand Down

0 comments on commit f3bf7b5

Please sign in to comment.