MCPcopy Create free account
hub / github.com/vercel/examples / getFiles

Function getFiles

internal/packages/playwright/scripts/generate-tests.ts:19–20  ·  view source on GitHub ↗
(folder: string)

Source from the content-addressed store, hash-verified

17 const relativeTestDir = path.join('src', 'e2e', 'tests', 'generated')
18 const testDir = path.join(packageRoot, relativeTestDir)
19 const getFiles = (folder: string): Promise<[string, string[]]> =>
20 fs.readdir(path.join(rootDir, folder)).then((paths) => [folder, paths])
21 const examplesBySection = await Promise.all([
22 getFiles('edge-middleware'),
23 getFiles('solutions'),

Callers 2

generateTestsFunction · 0.85
sw.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected