Skip to content

Commit fea2827

Browse files
authored
Change test-types commands into test:types
Also remove the optional `run` for pnpm scripts.
1 parent dd2440c commit fea2827

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
uses: pnpm/action-setup@v2
2828
- run: pnpm install --no-frozen-lockfile
2929
- run: pnpm test
30-
- run: pnpm run test-types
30+
- run: pnpm test:types

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ When reporting a bug, here are the informations you can provide to help other pe
2121
## Pull requests
2222

2323
Before submitting code, the changes you bring should:
24-
- have written tests that don’t fail when they are run (`pnpm run test`)
25-
- have updated [JSDoc comments](https://jsdoc.app/), updated types (`pnpm run types`) that are tested (`pnpm run test-types`);
26-
- respect the code styles (`pnpm run lint-fix`) defined using [EditorConfig](https://editorconfig.org/) and [ESLint](https://eslint.org).
24+
- have written tests that don’t fail when they are run (`pnpm test`)
25+
- have updated [JSDoc comments](https://jsdoc.app/), updated types (`pnpm types`) that are tested (`pnpm test:types`);
26+
- respect the code styles (`pnpm lint-fix`) defined using [EditorConfig](https://editorconfig.org/) and [ESLint](https://eslint.org).
2727

28-
Tests are using Vitest, and a command for [its UI](https://vitest.dev/guide/ui.html) is available (`pnpm run test:ui`).
28+
Tests are using Vitest, and a command for [its UI](https://vitest.dev/guide/ui.html) is available (`pnpm test:ui`).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"scripts": {
1313
"types": "tsc",
1414
"test": "vitest run",
15+
"test:types": "pnpm exec tsd",
1516
"test:ui": "vitest --ui",
16-
"test-types": "pnpm exec tsd",
1717
"coverage": "vitest run --coverage",
1818
"watch": "vitest watch",
1919
"build": "echo \"Nothing to build, this command is only here to please size-limit GitHub action\" && exit 0",

0 commit comments

Comments
 (0)