Skip to content

Commit

Permalink
chore: Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
znck committed May 5, 2018
1 parent 8e03553 commit c87292b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: pnpm test -- --ci --coverage
- run: pnpm test -- --ci --coverage

- run: cat coverage/lcov.info | pnpm coveralls
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
collectCoverageFrom: ['src/**'],
moduleFileExtensions: ['js', 'ts'],
transform: {
'^.+\\.ts$': '<rootDir>/node_modules/ts-jest/preprocessor.js',
'^.+\\.ts$': '<rootDir>/node_modules/ts-jest/preprocessor.js'
},
testMatch: ['**/?(*.)spec.ts'],
testEnvironment: 'node'
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"prebuild": "npm test",
"build": "tsc",
"test": "jest",
"coveralls": "coveralls",
"prepublishOnly": "npm run build",
"version": "conventional-changelog -p angular -r 2 -i CHANGELOG.md -s && git add CHANGELOG.md",
"postversion": "git push && git push --tags"
Expand All @@ -34,6 +35,7 @@
"@types/jest": "^22.2.3",
"@types/node": "^10.0.4",
"conventional-changelog": "^1.1.24",
"coveralls": "^3.0.1",
"jest": "^22.4.3",
"ts-jest": "^22.4.4",
"typescript": "^2.8.3"
Expand Down
24 changes: 24 additions & 0 deletions shrinkwrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ devDependencies:
'@types/jest': 22.2.3
'@types/node': 10.0.4
conventional-changelog: 1.1.24
coveralls: 3.0.1
jest: 22.4.3
ts-jest: 22.4.4
typescript: 2.8.3
Expand Down Expand Up @@ -885,6 +886,18 @@ packages:
dev: true
resolution:
integrity: sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
/coveralls/3.0.1:
dependencies:
js-yaml: 3.11.0
lcov-parse: 0.0.10
log-driver: 1.2.7
minimist: 1.2.0
request: 2.85.0
dev: true
engines:
node: '>=4.0.0'
resolution:
integrity: sha512-FAzXwiDOYLGDWH+zgoIA+8GbWv50hlx+kpEJyvzLKOdnIBv9uWoVl4DhqGgyUHpiRjAlF8KYZSipWXYtllWH6Q==
/cpx/1.5.0:
dependencies:
babel-runtime: 6.26.0
Expand Down Expand Up @@ -2535,6 +2548,10 @@ packages:
node: '>=0.10.0'
resolution:
integrity: sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=
/lcov-parse/0.0.10:
dev: true
resolution:
integrity: sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=
/left-pad/1.3.0:
dev: true
resolution:
Expand Down Expand Up @@ -2611,6 +2628,12 @@ packages:
dev: true
resolution:
integrity: sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==
/log-driver/1.2.7:
dev: true
engines:
node: '>=0.8.6'
resolution:
integrity: sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==
/longest/1.0.1:
dev: true
engines:
Expand Down Expand Up @@ -4316,6 +4339,7 @@ specifiers:
'@types/jest': ^22.2.3
'@types/node': ^10.0.4
conventional-changelog: ^1.1.24
coveralls: ^3.0.1
jest: ^22.4.3
ts-jest: ^22.4.4
typescript: ^2.8.3

0 comments on commit c87292b

Please sign in to comment.