MCPcopy Create free account
hub / github.com/Azure/static-web-apps-cli / findSamples

Function findSamples

e2e/detect.spec.js:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11function findSamples() {
12 const folders = ["samples/api", "samples/app", "samples/ssr"];
13 let allSamples = [];
14
15 for (const folder of folders) {
16 let samples = findFolders(path.join(__dirname, folder));
17 samples = samples.map((sample) => path.join(__dirname, folder, sample));
18 allSamples = [...allSamples, ...samples];
19 }
20
21 return allSamples;
22}
23
24function createTest(folderPath, name) {
25 it(`should detect from root framework ${name}`, async () => {

Callers 1

detect.spec.jsFile · 0.85

Calls 1

findFoldersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…