Skip to content

Commit

Permalink
Update apps/base-docs/docs/building-with-base-and-foundry/testing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
briandoyle81CB authored Dec 20, 2023
1 parent fad9a74 commit 573f713
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ contract CounterTest is Test {
Take note of the following:

- Foundry test files are named following the pattern: `<ContractName>.t.sol`
- Smart contract test files are named following the pattern: <ContractName>Test.
- Smart contract test files are named following the pattern: `<ContractName>Test`
- All tests inherit from `forge-std/Test.sol`.
- All tests contain a public function called `setUp`, which is executed before each test. This is similar to the `beforeEach` hook in the Mocha/Typescript world.
- Test cases start with the `test` keyword, for instance `testIncrement`.
Expand Down

0 comments on commit 573f713

Please sign in to comment.