Skip to content

Commit

Permalink
simplify test command setup
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Jan 13, 2025
1 parent cdf2189 commit 4c53cdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test
- name: Run type checks
run: npm run types
- name: Run tests
run: npm run test
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ npm install

## Running tests

Unit tests can be run using `npm test` (or `npm t`).
Tests can be run using `npm test` (or `npm t`).
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"lint:format": "prettier --cache --check .",
"lint": "npm-run-all --parallel --continue-on-error --print-label --aggregate-output lint:*",
"types": "tsc",
"test:unit": "vitest run",
"test": "npm-run-all --parallel --continue-on-error --print-label --aggregate-output types test:*",
"test": "vitest run",
"docs:generate": "tsdoc --src=src/contexts/*,src/hooks/* --dest=docs/API.md --noemoji --types"
},
"peerDependencies": {
Expand Down

0 comments on commit 4c53cdc

Please sign in to comment.