(text)
| 19 | */ |
| 20 | const STATUS_DATE_FIELD = { |
| 21 | generated: 'last_generated', |
| 22 | draft: null, |
| 23 | reviewed: 'last_validated', |
| 24 | validated: 'last_validated', |
| 25 | }; |
| 26 | const STATUSES = Object.keys(STATUS_DATE_FIELD); |
| 27 | const DATE_FIELDS = ['last_generated', 'last_validated']; |
| 28 | |
| 29 | function walk(dir) { |
| 30 | const files = []; |
| 31 | for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { |
| 32 | const full = path.join(dir, entry.name); |
| 33 | if (entry.isDirectory()) { |
| 34 | files.push(...walk(full)); |
| 35 | continue; |
no test coverage detected