VitestCookbookOn this pageVitest Cookbook Run a subset of tests To run a subset of your test suite you can use the KNAPSACK_PRO_TEST_FILE_* environment variables: KNAPSACK_PRO_TEST_FILE_PATTERN KNAPSACK_PRO_TEST_FILE_EXCLUDE_PATTERN KNAPSACK_PRO_TEST_FILE_LIST_SOURCE_FILE