Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typechain] - do not generate types when compiling test files #6283

Open
ChristopherDedominici opened this issue Feb 14, 2025 · 0 comments
Open
Assignees
Labels
v-next A Hardhat v3 development task

Comments

@ChristopherDedominici
Copy link
Contributor

In the example-project, if you run pnpm hardhat3 test followed by pnpm build, the build process will fail.

The reason for this failure is that the compilation process consists of two steps:

  1. Compilation of the smart contracts required for testing.
  2. Compilation of the test files to execute the tests.

During the second step, the generated types from the first step are overwritten, causing the pnpm build command to fail because TypeScript can no longer locate the required types.

We need to find a solution to skip the type generation during the second step to prevent this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v-next A Hardhat v3 development task
Projects
Status: Backlog
Development

No branches or pull requests

2 participants