MCPcopy Create free account
hub / github.com/alibaba/open-code-review / allFixtureFiles

Function allFixtureFiles

scripts/github-actions/action-contract.test.js:347–355  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

345}
346
347function allFixtureFiles(root) {
348 const files = [];
349 for (const entry of fs.readdirSync(root, { withFileTypes: true })) {
350 const fullPath = path.join(root, entry.name);
351 if (entry.isDirectory()) files.push(...allFixtureFiles(fullPath));
352 else files.push(fullPath);
353 }
354 return files;
355}
356
357function escapedRegExp(value) {
358 return new RegExp(value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected