mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: add pnpm test
command to run whole test suite
This commit is contained in:
parent
52da9d1b35
commit
4907660ff5
@ -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
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user