Skip to content

Typescript error in knockout counter tests #55

@Hyodar

Description

@Hyodar

Hello there!

It seems that the commit 73440a9 introduced a typescript error in some TestKnockoutCounter.ts unit tests, since the name hre is not known.

When writing tests in Typescript, the globally injected hre will not be recognized (confirmed by the docs), so one way to solve this would be to either import hre through import hre from "hardhat" or, since only the ethers module is being used, just import { ethers } from "hardhat" and changing usages accordingly would work. I've done this locally some days ago to be able to run the tests.

Let me know what you think. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions