Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ typings/

# the jest test setup file with secrets
testSetup.ts

# testcoverage
testcoverage
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ before_script:
- echo "jest.retryTimes(5);" > testSetup.ts

script:
- npm run test
# - npm run test
- npm run coveralls

deploy:
provider: pages
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mtn-pay-js [![Build Status](https://travis-ci.org/sopherapps/mtn-pay-js.svg?branch=master)](https://travis-ci.org/sopherapps/mtn-pay-js)
# mtn-pay-js [![Build Status](https://travis-ci.org/sopherapps/mtn-pay-js.svg?branch=master)](https://travis-ci.org/sopherapps/mtn-pay-js) [![Coverage Status](https://coveralls.io/repos/github/sopherapps/mtn-pay-js/badge.svg?branch=master)](https://coveralls.io/github/sopherapps/mtn-pay-js?branch=master)

An unofficial JavaScript/Typescript client package for querying the MTN Mobile Money API

Expand Down
17 changes: 17 additions & 0 deletions jestconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@
"json",
"node"
],
"coverageDirectory": "testcoverage",
"coveragePathIgnorePatterns": [
"/node_modules/",
"/docs/",
"/lib",
"testcoverage",
"testSetup"
],
"collectCoverageFrom": [
"**/*.{js,jsx,ts,tsx}",
"!**/node_modules/**",
"!**/vendor/**",
"!**/__tests__/**",
"!**/docs/**",
"!**/lib/**",
"!**/testcoverage/**"
],
"setupFiles": [
"./testSetup.ts"
],
Expand Down
40 changes: 40 additions & 0 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"preversion": "npm run lint",
"version": "npm run format && npm run typedoc && git add -A src && git add -A docs",
"postversion": "git push && git push --tags",
"typedoc": "typedoc --out docs src --theme minimal"
"typedoc": "typedoc --out docs src --theme minimal",
"coveralls": "jest --coverage --config jestconfig.json --runInBand && cat ./testcoverage/lcov.info | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -34,6 +35,7 @@
"homepage": "https://github.com/sopherapps/mtn-pay-js#readme",
"devDependencies": {
"@types/jest": "^24.0.13",
"coveralls": "^3.0.3",
"jest": "^24.8.0",
"jest-circus": "^24.8.0",
"prettier": "^1.17.1",
Expand All @@ -51,4 +53,4 @@
"axios": "^0.19.0",
"uuidjs": "^4.2.1"
}
}
}