mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
docs: allow npm run build when tests need dist/; npm run check stays the check
This commit is contained in:
parent
59ca40cf58
commit
72363383ff
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
- After code changes (not docs): `npm run check` (full output, no tail). Fix all errors, warnings, and infos before committing. Does not run tests.
|
- After code changes (not docs): `npm run check` (full output, no tail). Fix all errors, warnings, and infos before committing. Does not run tests.
|
||||||
- Never run `npm run build` or `npm test` unless requested by the user.
|
- Run `npm run build` whenever something needs built output (`dist/`): tests or benchmarks that import built packages, Durable's workerd suite. Never use it to type check or lint: that is `npm run check`, the preferred check.
|
||||||
|
- Never run `npm test` unless requested by the user.
|
||||||
- Never run the full vitest suite directly: it includes e2e tests that activate when endpoint/auth env vars are present. For all non-e2e tests, run `./test.sh` from the repo root. Otherwise run specific tests from the package root:
|
- Never run the full vitest suite directly: it includes e2e tests that activate when endpoint/auth env vars are present. For all non-e2e tests, run `./test.sh` from the repo root. Otherwise run specific tests from the package root:
|
||||||
- Vitest: `node "$(git rev-parse --show-toplevel)/node_modules/vitest/dist/cli.js" --run test/specific.test.ts`
|
- Vitest: `node "$(git rev-parse --show-toplevel)/node_modules/vitest/dist/cli.js" --run test/specific.test.ts`
|
||||||
- `packages/tui` (`node:test`): `node --test test/specific.test.ts`
|
- `packages/tui` (`node:test`): `node --test test/specific.test.ts`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue