When I run staging test , I got this issue '1) Raffle Unit Tests
"before each" hook for "works with live Chainlink Keepers and Chainlink VRF, we get a random winner":
ProviderError: Unsupported method: evm_snapshot. See available methods at https://docs.alchemy.com/alchemy/documentation/apis'
Here is my code
// Inorder to test this in test network we need this things
//1. Get our SubId for Chainlink VRF
//2. Deploy our contract using the SubId
//3.Register the contract with chainlink VRF and its subId
//4. Register the contract with chainlink keepers
//5. Run staging tests
When I run staging test , I got this issue '1) Raffle Unit Tests "before each" hook for "works with live Chainlink Keepers and Chainlink VRF, we get a random winner": ProviderError: Unsupported method: evm_snapshot. See available methods at https://docs.alchemy.com/alchemy/documentation/apis'
Here is my code // Inorder to test this in test network we need this things //1. Get our SubId for Chainlink VRF //2. Deploy our contract using the SubId //3.Register the contract with chainlink VRF and its subId //4. Register the contract with chainlink keepers //5. Run staging tests
const { assert, expect } = require("chai") const { network, deployments, ethers, getNamedAccounts } = require("hardhat") const { developmentChains, networkConfig } = require("../../helper-hardhat-config")
developmentChains.includes(network.name) ? describe.skip : describe("Raffle Unit Tests", function () { let raffle, raffleEntranceFee, deployer // , deployer const chainId = network.config.chainId