(dir: string)
| 111 | |
| 112 | const allFiles: string[] = []; |
| 113 | function getFiles(dir: string) { |
| 114 | readdirSync(dir) |
| 115 | .map((f) => join(dir, f)) |
| 116 | .forEach((filePath) => { |
| 117 | const s = statSync(filePath); |
| 118 | if (s.isDirectory()) { |
| 119 | const dirName = basename(filePath); |
| 120 | if (dirName !== 'starters' && dirName !== 'templates') { |
| 121 | getFiles(filePath); |
| 122 | } |
| 123 | } else if (s.isFile()) { |
| 124 | allFiles.push(filePath); |
| 125 | } else { |
| 126 | errors.push(`Unexpected: ${filePath}`); |
| 127 | } |
| 128 | }); |
| 129 | } |
| 130 | getFiles(config.distQwikPkgDir); |
| 131 | const unexpectedFiles = allFiles.filter((f) => !expectedFiles.includes(f)); |
| 132 |
no test coverage detected
searching dependent graphs…