docs: add pnpm test command to run whole test suite

This commit is contained in:
Daniel Roe 2023-05-17 10:07:26 +01:00
parent 52da9d1b35
commit 4907660ff5
2 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,7 @@ You can modify the example app in `playground/`, and run it with `pnpm dev`. Ple
Every new feature should have a corresponding unit test (if possible). The `test` folder in this repository is currently a work in progress, but do your best to create a new test following the example of what's already there.
Before creating a PR or marking it as ready-to-review, ensure that all tests pass by running `pnpm test:fixtures` locally.
Before creating a PR or marking it as ready-to-review, ensure that all tests pass by running `pnpm test` locally.
## Linting

View File

@ -16,6 +16,7 @@
"play": "nuxi dev playground",
"play:build": "nuxi build playground",
"play:preview": "nuxi preview playground",
"test": "pnpm test:fixtures && pnpm test:fixtures:payload && pnpm test:fixtures:dev && pnpm test:fixtures:webpack && pnpm test:unit && pnpm typecheck",
"test:fixtures": "nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/runtime-compiler && vitest run --dir test",
"text:fixtures:payload": "TEST_PAYLOAD=js pnpm test:fixtures",
"test:fixtures:dev": "TEST_ENV=dev pnpm test:fixtures",