Skip to content

Commit

Permalink
make sure hardhat picks up the correct tsconfig when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frontendphil committed Nov 13, 2024
1 parent cc6471d commit 0a31fd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/testing-kit/bin/testing-kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ if (!fs.existsSync(hardhatConfigPath)) {
}

try {
process.env.TS_NODE_PROJECT = `${projectRoot}/tsconfig.json`

if (command === 'test' && directory) {
execSync(`yarn ${command} ${path.join(projectRoot, directory)}`, { stdio: 'inherit' })
} else {
Expand Down

0 comments on commit 0a31fd5

Please sign in to comment.