Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tests): replace tap with node:test #286

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16
- 18
- 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc
- run: npm install
- run: npm run lint
- run: npm run test:ci
- run: npm run test
automerge:
needs: build
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions .taprc

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"lint": "eslint lib/**/*.js test/**/*.js",
"lint:fix": "npm run lint -- --fix",
"lint:staged": "lint-staged",
"test": "tap --no-browser --coverage-report=html --coverage-report=text test",
"test:ci": "tap --no-color --coverage-report=json --coverage-report=text test"
"test": "node --test --experimental-test-coverage --test-coverage-exclude=test/** --test-coverage-branches=100 --test-coverage-lines=100 --test-coverage-functions=100"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -47,8 +46,7 @@
"lint-staged": "^15.0.1",
"prettier": "^3.0.1",
"proxyquire": "^2.1.3",
"sinon": "^19.0.2",
"tap": "^16.0.0"
"sinon": "^19.0.2"
},
"lint-staged": {
"*.js": [
Expand Down
Loading
Loading