MCPcopy Create free account
hub / github.com/testing-library/react-hooks-testing-library / makeDirectory

Function makeDirectory

scripts/generate-submodules.ts:24–34  ·  view source on GitHub ↗
(submodule: string)

Source from the content-addressed store, hash-verified

22}
23
24function makeDirectory(submodule: string) {
25 const submoduleDir = path.join(process.cwd(), submodule)
26
27 if (fs.existsSync(submoduleDir)) {
28 cleanDirectory(submoduleDir)
29 } else {
30 fs.mkdirSync(submoduleDir)
31 }
32
33 return submoduleDir
34}
35
36function requiredFile(submodule: string) {
37 return ([name]: [string, unknown]) => {

Callers 1

createSubmoduleFunction · 0.85

Calls 1

cleanDirectoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…