MCPcopy Create free account
hub / github.com/SethGammon/Citadel / writeMarker

Function writeMarker

scripts/test-state-hygiene.js:60–63  ·  view source on GitHub ↗
(filePath, ageMs)

Source from the content-addressed store, hash-verified

58const MINUTE = 60 * 1000;
59
60function writeMarker(filePath, ageMs) {
61 const timestamp = new Date(Date.now() - ageMs).toISOString();
62 fs.writeFileSync(filePath, JSON.stringify({ category: 'test', timestamp }));
63}
64
65function makeLockdir(dirPath, ageMs) {
66 fs.mkdirSync(dirPath, { recursive: true });

Callers 1

buildFixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected