{"record":{"id":"b2137613eafe8b6b","repo":"ruvnet/ruflo","slug":"file-not-found-path","errorCode":null,"errorMessage":"File not found: ${path}","messagePattern":"File not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/testing/src/helpers/setup-teardown.ts","lineNumber":532,"sourceCode":"export function createInMemoryFileSystemHelper(): FileSystemTestHelper {\n  const files = new Map<string, string>();\n  const tempDirs: string[] = [];\n\n  return {\n    async createTempDir(): Promise<string> {\n      const dir = `/tmp/test-${Date.now()}-${Math.random().toString(36).slice(2)}`;\n      tempDirs.push(dir);\n      return dir;\n    },\n\n    async createFile(path: string, content: string): Promise<void> {\n      files.set(path, content);\n    },\n\n    async readFile(path: string): Promise<string> {\n      const content = files.get(path);\n      if (content === undefined) {\n        throw new Error(`File not found: ${path}`);\n      }\n      return content;\n    },\n\n    async cleanup(): Promise<void> {\n      files.clear();\n      tempDirs.length = 0;\n    },\n  };\n}\n\n/**\n * Performance test helper\n */\nexport interface PerformanceTestHelper {\n  startMeasurement(name: string): void;\n  endMeasurement(name: string): number;\n  getMeasurements(): Record<string, number[]>;","sourceCodeStart":514,"sourceCodeEnd":550,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/testing/src/helpers/setup-teardown.ts#L514-L550","documentation":"The in-memory FileSystemTestHelper.readFile was asked for a path never created via createFile — the files Map has no entry for it. This is the helper's stand-in for fs ENOENT: the test is reading a file it did not set up.","triggerScenarios":"Thrown at v3/@claude-flow/testing/src/helpers/setup-teardown.ts:532 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the fixture file in the test setup before referencing it.","Verify the path is relative to the test working directory."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}