diff --git a/packages/testing-kit/bin/testing-kit.js b/packages/testing-kit/bin/testing-kit.js index bbc371e4c..33cb85ff4 100755 --- a/packages/testing-kit/bin/testing-kit.js +++ b/packages/testing-kit/bin/testing-kit.js @@ -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 {