Skip to content

Commit

Permalink
fix test scripts
Browse files Browse the repository at this point in the history
make default npm test only run unit tests
to make np happy
  • Loading branch information
mifi committed Jan 20, 2021
1 parent 973b307 commit 9ad3fae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- run: yarn
- run: npm run lint
- run: npm test
- run: npm test-all
env:
TRANSLOADIT_KEY: ${{ secrets.TRANSLOADIT_KEY }}
TRANSLOADIT_SECRET: ${{ secrets.TRANSLOADIT_SECRET }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:

- run: yarn
- run: npm run lint
- run: npm run test-unit
- run: npm run test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ We'd be happy to accept pull requests. If you plan on working on something big,

### Testing

Check your sources for linting errors via `npm run lint`, and unit tests, and run them via `npm run test-unit`
Check your sources for linting errors via `npm run lint`, and unit tests, and run them via `npm run test`

### Releasing

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"test-unit": "jest --coverage ./test/unit",
"test-integration": "jest ./test/integration",
"tsd": "tsd",
"test": "npm run tsd && jest --coverage --coverageReporters json lcov text clover json-summary --forceExit"
"test-all": "npm run tsd && jest --coverage --coverageReporters json lcov text clover json-summary --forceExit",
"test": "npm run tsd && npm run test-unit"
},
"license": "MIT",
"main": "./index",
Expand Down

0 comments on commit 9ad3fae

Please sign in to comment.