MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / getHardhatTestDirectory

Function getHardhatTestDirectory

src/project/hardhat.ts:40–44  ·  view source on GitHub ↗
(opts: { hardhatOutput?: string; rootDirectory: string; })

Source from the content-addressed store, hash-verified

38}
39
40const getHardhatTestDirectory = (opts: { hardhatOutput?: string; rootDirectory: string; }) => {
41 const { hardhatOutput, rootDirectory } = opts;
42 const testDirectory = hardhatOutput || path.join(rootDirectory, 'test')
43 return mkdirIfNotExists(testDirectory);
44}
45
46const tryFindHardhatProjectInPath = (contractsPath?: string) => {
47 const contractsDirectory = contractsPath && findDirectoryInTree(contractsPath, 'contracts')

Callers 1

getHardhatProjectInfoFunction · 0.85

Calls 1

mkdirIfNotExistsFunction · 0.90

Tested by

no test coverage detected