Skip to content

Commit

Permalink
Add npm run test-only script for development
Browse files Browse the repository at this point in the history
Difference between `npm test` and `npm run test-only`:

- `npm test` - run linting before testing
- `npm run test-only - without linting

Example:

```console
$ npm run test-only -- cli
...
 PASS  lib/__tests__/cli.test.mjs
 PASS  lib/utils/__tests__/checkInvalidCLIOptions.test.js
...
```
  • Loading branch information
ybiquitous committed Jun 24, 2023
1 parent 42d4562 commit 254fa55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"pretest": "npm run lint",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test-coverage": "npm test --ignore-scripts -- --coverage",
"test-only": "npm test --ignore-scripts",
"version": "changeset version",
"postversion": "git restore package.json",
"watch": "npm test --ignore-scripts -- --watch",
Expand Down

0 comments on commit 254fa55

Please sign in to comment.