(id)
| 53 | } |
| 54 | |
| 55 | function isInManifest(id) { |
| 56 | try { |
| 57 | if (!id) return false; |
| 58 | if (!fs.existsSync(MANIFEST_PATH)) return false; |
| 59 | const list = JSON.parse(fs.readFileSync(MANIFEST_PATH, 'utf8')); |
| 60 | return Array.isArray(list) && list.includes(id); |
| 61 | } catch { |
| 62 | return false; |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | module.exports = { hashBody, keyFor, registerTestInManifest, isInManifest }; |
no outgoing calls
no test coverage detected