ruvnet/ruflo · error
File not found: ${path}
Error message
File not found: ${path} What it means
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.
Source
Thrown at v3/@claude-flow/testing/src/helpers/setup-teardown.ts:532
export function createInMemoryFileSystemHelper(): FileSystemTestHelper {
const files = new Map<string, string>();
const tempDirs: string[] = [];
return {
async createTempDir(): Promise<string> {
const dir = `/tmp/test-${Date.now()}-${Math.random().toString(36).slice(2)}`;
tempDirs.push(dir);
return dir;
},
async createFile(path: string, content: string): Promise<void> {
files.set(path, content);
},
async readFile(path: string): Promise<string> {
const content = files.get(path);
if (content === undefined) {
throw new Error(`File not found: ${path}`);
}
return content;
},
async cleanup(): Promise<void> {
files.clear();
tempDirs.length = 0;
},
};
}
/**
* Performance test helper
*/
export interface PerformanceTestHelper {
startMeasurement(name: string): void;
endMeasurement(name: string): number;
getMeasurements(): Record<string, number[]>;View on GitHub (pinned to fa13ee4ad6)
Solutions
- Create the fixture file in the test setup before referencing it.
- Verify the path is relative to the test working directory.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at v3/@claude-flow/testing/src/helpers/setup-teardown.ts:532 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/b2137613eafe8b6b.
Report an issue: GitHub.