MCPcopy
hub / github.com/sahat/hackathon-starter / registerTestInManifest

Function registerTestInManifest

test/tools/fixture-helpers.js:40–53  ·  view source on GitHub ↗
(testFile)

Source from the content-addressed store, hash-verified

38}
39
40function registerTestInManifest(testFile) {
41 try {
42 if (process.env.API_MODE !== 'record') return;
43 let list = [];
44 try {
45 list = JSON.parse(fs.readFileSync(MANIFEST_PATH, 'utf8'));
46 if (!Array.isArray(list)) list = [];
47 } catch {}
48 if (!list.includes(testFile)) {
49 list.push(testFile);
50 fs.writeFileSync(MANIFEST_PATH, JSON.stringify(list, null, 2));
51 }
52 } catch {}
53}
54
55function isInManifest(id) {
56 try {

Callers 13

giphy.e2e.test.jsFile · 0.85
lob.e2e.test.jsFile · 0.85
nyt.e2e.test.jsFile · 0.85
chart.e2e.test.jsFile · 0.85
rag.e2e.test.jsFile · 0.85
trakt.e2e.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected