From f3d9fe37f8674e0b74838b49d560c89747701378 Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Mon, 29 Jan 2024 20:35:29 +0100 Subject: [PATCH] chore: added filter examples --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0488d4a22a39..c458a976ca1f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,11 +62,11 @@ If you observe following error running any of the test files that means you are - To fix errors always focus on passing all minimal tests first without running mainnet tests. - Spec tests often compare full expected vs actual states in JSON format. - A single logical error can cause many spec tests to fail. To focus on a single test at a time you can use vitest's option `--bail 1` to stop at the first failed test -- To then run only that failed test you can run against a specific file as use vitest's filters to run only one case +- To then run only that failed test you can run against a specific file as use vitest's filters option `-t ` to run only one case ```sh cd packages/beacon-node -LODESTAR_PRESET=minimal yarn vitest --run --config vitest.config.spec.ts test/spec/presets/sanity.test.ts +LODESTAR_PRESET=minimal yarn vitest --run --bail 1 --config vitest.config.spec.ts test/spec/presets/sanity.test.ts -t attester_slashing ``` ## Docker