Skip to content

Commit

Permalink
use vm.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 1, 2023
1 parent 2cf04f5 commit e97a53c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cheatcodes/skip.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ Tests marked as skipped will appear with a `[SKIPPED]` label on the test runner
```solidity
function testSkip() public {
cheats.skip(true);
vm.skip(true);
/// This revert will not be reached as this test will be skipped.
revert("Should not reach this revert");
}
function testNotSkip() public {
cheats.skip(false);
vm.skip(false);
/// This revert will be reached as this test will not be skipped, and the test will fail.
revert("Should reach this revert");
}
```
```

0 comments on commit e97a53c

Please sign in to comment.