Skip to content

Commit

Permalink
Merge pull request #44 from tiago154/feature/add-coverage
Browse files Browse the repository at this point in the history
Adding testing coverage
  • Loading branch information
victorperin committed Oct 11, 2019
2 parents 088c3c4 + 884117e commit 4f4925a
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
bin
bin
coverage
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ['<rootDir>/src/**/*.js'],
coverageDirectory: 'coverage',
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/**/*.test.js'],
verbose: true,
}
151 changes: 150 additions & 1 deletion package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"start": "node ./src/cli/index.js",
"test": "jest",
"pretest": "eslint .",
"build": "pkg . -t node10-linux-x64,node10-macos-x64,node10-win-x64 --out-path ./bin"
"build": "pkg . -t node10-linux-x64,node10-macos-x64,node10-win-x64 --out-path ./bin",
"coverage": "http-server coverage/lcov-report/"
},
"keywords": [],
"author": "",
Expand All @@ -31,6 +32,7 @@
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^3.1.1",
"execa": "^2.0.5",
"http-server": "^0.11.1",
"jest": "^24.9.0",
"pkg": "^4.4.0",
"prettier": "^1.18.2"
Expand Down

0 comments on commit 4f4925a

Please sign in to comment.