From 5700c5dfacb55aa464d6ab3d4711fd302e4eb4ef Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Wed, 23 Oct 2024 18:08:10 +0200 Subject: [PATCH] hide skipped tests When you have a lot of tests, and use a `.only` on a specific test, then all other tests are still visible in the UI. If you are logging something, then you always have to scroll up. To prevent this, we can use this flag to always hide the list of skipped tests. Note: the UI itself still has an indication that _something_ is being skipped: ```console Test Files 1 passed (1) Tests 1 passed | 97 skipped (98) Start at 13:27:14 Duration 55ms ``` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 095a91db820c..700cd40d725a 100644 --- a/package.json +++ b/package.json @@ -37,10 +37,10 @@ "build": "turbo build --filter=!./playgrounds/*", "postbuild": "node ./scripts/pack-packages.mjs", "dev": "turbo dev --filter=!./playgrounds/*", - "test": "cargo test && vitest run", - "test:integrations": "vitest --root=./integrations --no-file-parallelism", + "test": "cargo test && vitest run --hideSkippedTests", + "test:integrations": "vitest --root=./integrations --no-file-parallelism --hideSkippedTests", "test:ui": "pnpm run --filter=tailwindcss test:ui", - "tdd": "vitest", + "tdd": "vitest --hideSkippedTests", "bench": "vitest bench", "version-packages": "node ./scripts/version-packages.mjs", "vite": "pnpm run --filter=vite-playground dev",