claude-code / mods /diff /tests /fixtures /old-files.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
776286d verified
Raw History Blame Contribute Delete
459 Bytes
import type { On } from 'claude-code'
/**
* Answers `$.fs` over /work holding MOVED_IN's two files, both last
* written at time 0, before any session began.
*
* @param on the test's `on`
*/
export function oldFiles(on: On) {
on('fs.list', () => ({
value: [
{ name: 'old.ts', kind: 'file', size: 2 },
{ name: 'moved.ts', kind: 'file', size: 2 },
],
}))
on('fs.stat', () => ({ value: { kind: 'file', size: 2, mtimeMs: 0 } }))
}