Skip to content

Commit

Permalink
Update deps & fix coverage (#125)
Browse files Browse the repository at this point in the history
* include node 22 build in CI

* fix coverage report

* update dependencies
emielb authored Jun 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1f487db commit 33d0ffd
Showing 5 changed files with 1,285 additions and 3,275 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use node.js ${{ matrix.node-version }}
4,529 changes: 1,269 additions & 3,260 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -14,11 +14,10 @@
"clean": "rimraf .nyc_output coverage dist",
"build": "npm run clean && npm test && npm run bundle",
"bundle": "tsc --module es6 && rollup -c && node ./test-bundle",
"tsc": "tsc",
"test": "npm run lint && npm run tsc && nyc --check-coverage --lines 100 --functions 100 --branches -1 --statements 100 --reporter text-summary --reporter lcov --include \"dist/**/*.js\" --exclude \"**/*.spec.js\" mocha --forbid-only \"dist/**/*.spec.js\"",
"test": "npm run lint && tsc && nyc --check-coverage --lines 100 --functions 100 --branches 99 --statements 100 --reporter text-summary --reporter lcov --include \"src/**/*.ts\" --include \"dist/**/*.js\" --exclude \"src/**/*.spec.ts\" --exclude \"dist/**/*.spec.js\" mocha --forbid-only \"dist/**/*.spec.js\"",
"posttest": "rimraf .nyc_output",
"watch": "nodemon --watch src --ext ts --exec npm run watch:run",
"watch:run": "nyc --reporter html --reporter text-summary --extension .ts --include \"src/**/*.ts\" --exclude \"src/**/*.spec.ts\" mocha --reporter landing --compilers ts:ts-node/register \"src/**/*.spec.ts\" && rimraf .nyc_output",
"watch:run": "nyc --reporter html --reporter text-summary --extension .ts --include \"src/**/*.ts\" --exclude \"src/**/*.spec.ts\" mocha --reporter landing --require ts-node/register \"src/**/*.spec.ts\" && rimraf .nyc_output",
"lint": "tslint -p tsconfig.json --format codeFrame"
},
"repository": {
@@ -41,20 +40,21 @@
},
"devDependencies": {
"@types/chai": "^4.2.22",
"@types/mocha": "^9.0.0",
"@types/node": "^18.6.3",
"@types/sinon": "^10.0.4",
"@types/mocha": "^10.0.6",
"@types/node": "^20.14.2",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.2",
"chai": "^4.2.0",
"mocha": "^9.1.2",
"nodemon": "^2.0.13",
"chai": "^4.4.1",
"mocha": "^10.4.0",
"nodemon": "^3.1.3",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.58.0",
"rimraf": "^5.0.7",
"rollup": "^2.79.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-visualizer": "^5.5.2",
"sinon": "^11.1.2",
"sinon": "^18.0.0",
"sinon-chai": "^3.3.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.2.1",
"tslint": "^6.1.3",
"typescript": "^4.4.3"
2 changes: 1 addition & 1 deletion src/test-setup.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { use } from 'chai';
import * as sinonChai from 'sinon-chai';
import sinonChai from 'sinon-chai';

use(sinonChai);
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -17,7 +17,8 @@
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"pretty": true
"pretty": true,
"esModuleInterop": true
},
"include": [
"src/**/*.ts",

0 comments on commit 33d0ffd

Please sign in to comment.