Skip to content

Commit

Permalink
Adding coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
karllhughes committed Sep 8, 2018
1 parent c211c12 commit 16ffb72
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
dist/
.DS_Store
.env
coverage/
42 changes: 41 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "airtable-proxy-worker",
"version": "0.0.1",
"homepage": "https://github.com/portable-cto/airtable-proxy-worker",
"description": "A Cloudflare Worker that will proxy requests to the Airtable API",
"scripts": {
"build": "webpack -p --progress --colors",
"prettier": "prettier --write 'src/*.js'",
"lint": "prettier --list-different 'src/*.js'",
"test": "npm run lint --silent && jest"
"test": "npm run lint --silent && jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"test:local": "jest"
},
"main": "dist/worker.js",
"author": "Karl L. Hughes <khughes.me@gmail.com>",
Expand All @@ -16,6 +18,7 @@
"webpack-cli": "^2.1.4"
},
"devDependencies": {
"coveralls": "^3.0.1",
"jest": "^23.5.0",
"prettier": "1.14.2"
},
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Contributions are welcome and encouraged! When contributing to this repository,

### Testing

Before you make a pull request, please add or update any relevant tests. You can run the test suite (uses [Jest](https://jestjs.io/)): `npm test`
Before you make a pull request, please add or update any relevant tests. You can run the test suite (uses [Jest](https://jestjs.io/)): `npm test:local`

Also run [Prettier](https://prettier.io/) to ensure that code styling is consistent: `npm run prettier`.

Expand Down

0 comments on commit 16ffb72

Please sign in to comment.