Skip to content

[Hardhat-typechain] Add tests to cover a wider range of user scenarios #6432

@ChristopherDedominici

Description

@ChristopherDedominici

Describe the feature

List of scenarios to test in hardhat projects with ethers and mocha:

  • Compile all contracts
  • Compile contracts, add a new contract and recompile everything
  • Compile contracts, remove a contract and recompile
  • Compile a single contract (should not override previously generated types) - tracked here
  • Compile a subset of contracts (should not override previously generated types) - tracked here
  • Ensure that running the commands in sequence pnpm hardhat build, then pnpm hardhat test, results in compiler errors (without overriding previously generated types) - tracked here
  • If my project has two contracts, A and B, then compiling A and then compiling B should produce the same result than compiling the whole project
  • Compile with 2 contracts in the same .sol file

Adding @fvictorio for visibility. Feel free to suggest additional test scenarios if you think of any.

Search terms

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    To-do Bugs/Tasks

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions