Skip to content

Commit

Permalink
chore: added filter examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Jan 29, 2024
1 parent 09e9904 commit f3d9fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <pattern>` 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
Expand Down

0 comments on commit f3d9fe3

Please sign in to comment.