mirror of
https://github.com/vacp2p/foundry-template.git
synced 2025-02-21 03:28:15 +00:00
build: remove "prettier-plugin-solidity" and "solhint-plugin-prettier" deps chore: add "fmt" configuration in Foundry config chore: delete solidity override from Prettier rules chore: delete solidity rules from Solhint config chore: modify scripts to run Prettier on all files except "*.sol" test: document "setUp" function
22 lines
742 B
Solidity
22 lines
742 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity >=0.8.4;
|
|
|
|
import { console2 } from "forge-std/console2.sol";
|
|
import { PRBTest } from "@prb/test/PRBTest.sol";
|
|
import { StdCheats } from "forge-std/StdCheats.sol";
|
|
|
|
/// @dev See the "Writing Tests" section in the Foundry Book if this is your first time with Forge.
|
|
/// https://book.getfoundry.sh/forge/writing-tests
|
|
contract FooTest is PRBTest, StdCheats {
|
|
/// @dev An optional function invoked before each test case is run
|
|
function setUp() public {
|
|
// solhint-disable-previous-line no-empty-blocks
|
|
}
|
|
|
|
/// @dev Run Forge with `-vvvv` to see console logs.
|
|
function testExample() external {
|
|
console2.log("Hello World");
|
|
assertTrue(true);
|
|
}
|
|
}
|