An opinion on my test? #3631
Unanswered
DarKKnight270
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hello @DarKKnight270, Have you run the test and everything works as expected. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, At the end of the raffle course, Patrick tells us to make our own integration test, here is mine, can you help me about it ? Maybe tell me what is good in it and what is wrong, and what can I do to improve it, thanks :
`// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import {Raffle} from "../../src/Raffle.sol";
import {Test, console2} from "forge-std/Test.sol";
import {DeployRaffle} from "../../script/DeployRaffle.s.sol";
import {HelperConfig} from "../../script/HelperConfig.s.sol";
import {VRFCoordinatorV2_5Mock} from "@chainlink/contracts/src/v0.8/vrf/mocks/VRFCoordinatorV2_5Mock.sol";
import {Vm} from "forge-std/Vm.sol";
/**
*/
contract InteractionsTest is Test {
/* Events */
event RaffleEntered(address indexed player);
event WinnerPicked(address indexed winner);
event RequestRaffleWinner(uint256 indexed requestId);
}
`
Beta Was this translation helpful? Give feedback.
All reactions