Rename test tasks (#47282)

* Add `npm test` instructions to README

* Rename test tasks

lint -> test
test -> test-all

lint is still around for backward compatibility

* add missed close quote
This commit is contained in:
Nathan Shively-Sanders 2020-09-04 15:12:35 -07:00 committed by GitHub
parent 0713bb4b3a
commit 679571bbfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@ jobs:
- run: npm install
# Run tests
- run: npm run test
- run: npm run test-all
- name: "Run Danger"
env:

View File

@ -338,16 +338,15 @@ For more details, see [dtslint](https://github.com/Microsoft/dtslint#write-tests
## Verifying
Test your changes by running `npm run lint package-name` where `package-name` is the name of your package.
This script uses [dtslint](https://github.com/Microsoft/dtslint) to run the TypeScript compiler against your dts files.
Test your changes by running `npm test package-name` where `package-name` is the name of your package.
This script uses [dtslint](https://github.com/microsoft/dtslint) to run the TypeScript compiler against your dts files.
## FAQ
#### What exactly is the relationship between this repository and the `@types` packages on NPM?
The `master` branch is automatically published to the `@types` scope on NPM thanks to [types-publisher](https://github.com/Microsoft/types-publisher).
The `master` branch is automatically published to the `@types` scope on NPM thanks to [types-publisher](https://github.com/microsoft/DefinitelyTyped-tools).
#### I've submitted a pull request. How long until it is merged?

View File

@ -17,10 +17,10 @@ jobs:
if [[ $BUILD_REASON == "Schedule" ]]; then git config --global user.email "types@microsoft.com" && git config --global user.name "TypeScript Bot" && npm run update-codeowners; fi
git checkout -- .
npm run test
npm run test-all
displayName: 'npm run test'
displayName: 'npm run test-all'
trigger:
- master

View File

@ -18,7 +18,8 @@
"compile-scripts": "tsc -p scripts",
"not-needed": "node scripts/not-needed.js",
"update-codeowners": "node scripts/update-codeowners.js",
"test": "node node_modules/@definitelytyped/dtslint-runner/dist/index.js --path .",
"test-all": "node node_modules/@definitelytyped/dtslint-runner/dist/index.js --path .",
"test": "dtslint types",
"lint": "dtslint types",
"prettier": "prettier"
},