From 4907660ff534eec2ad9d28c9dd2de601ca03cff5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 17 May 2023 10:07:26 +0100 Subject: [PATCH] docs: add `pnpm test` command to run whole test suite --- docs/5.community/5.framework-contribution.md | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/5.community/5.framework-contribution.md b/docs/5.community/5.framework-contribution.md index a15fb759b1..4c0858bf87 100644 --- a/docs/5.community/5.framework-contribution.md +++ b/docs/5.community/5.framework-contribution.md @@ -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 diff --git a/package.json b/package.json index f4b218b617..09ef894fa5 100644 --- a/package.json +++ b/package.json @@ -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",