mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
0713bb4b3a
commit
679571bbfc
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
- run: npm install
|
||||
|
||||
# Run tests
|
||||
- run: npm run test
|
||||
- run: npm run test-all
|
||||
|
||||
- name: "Run Danger"
|
||||
env:
|
||||
|
||||
@ -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?
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user