clarinet icon indicating copy to clipboard operation
clarinet copied to clipboard

Ability to specify a deployment plan in tests

Open lgalabru opened this issue 3 years ago • 1 comments
trafficstars

Clarinet.test({
    name: "Test with pre-setup",
    deploymentPlan: "./deployments/test-01.yaml", // <- Ability to support this
    preDeployment: async (chain: Chain, accounts: Map<string, Account>) => {
        chain.mineEmptyBlock(100);
    },
    async fn(chain: Chain, accounts: Map<string, Account>, contracts: Map<string, Contract>) {
...

lgalabru avatar May 18 '22 02:05 lgalabru

What's inside ./deployments/test-01.yaml? Do we have a sample? (If we do, sorry for asking, I'm not aware of it.)

moodmosaic avatar May 24 '22 18:05 moodmosaic