{{name}}.spec.ts
import { Blockchain, SandboxContract, TreasuryContract } from '@ton/sandbox';
import { toNano } from '@ton/core';
import { {{name}} } from '../build/{{name}}/{{name}}_{{name}}';
import '@ton/test-utils';

describe('{{name}}', () => {
    let blockchain: Blockchain;
    let deployer: SandboxContract<TreasuryContract>;
    let {{loweredName}}: SandboxContract<{{name}}>;

    beforeEach(async () => {
        blockchain = await Blockchain.create();

        {{loweredName}} = blockchain.openContract(await {{name}}.fromInit());

        deployer = await blockchain.treasury('deployer');

        const deployResult = await {{loweredName}}.send(
            deployer.getSender(),
            {
                value: toNano('0.05'),
            },
            null,
        );

        expect(deployResult.transactions).toHaveTransaction({
            from: deployer.address,
            to: {{loweredName}}.address,
            deploy: true,
            success: true,
        });
    });

    it('should deploy', async () => {
        // the check is done inside beforeEach
        // blockchain and {{loweredName}} are ready to use
    });
});
