oven-sh/bun · error
❌ Could not find test
Error message
❌ Could not find test: ${testName} What it means
Thrown by fetch-node-test after every candidate path variation for the requested Node.js test name was tried and none could be fetched/saved. It means the test name doesn't correspond to a real file in the Node repository (typo, renamed, or not present in the target version).
Solutions
- Verify the test name matches a real file under test/ in nodejs/node
- Try alternate naming conventions (e.g. sequential vs parallel directory)
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at scripts/fetch-node-test.ts:86 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/be0bb3aedd413c56.
Report an issue: GitHub.
Appendix: source
Thrown at scripts/fetch-node-test.ts:86
mkdirSync(dirname(localPath), { recursive: true });
// Write the file
writeFileSync(localPath, content);
console.log(
`✅ Successfully fetched and saved: ${localPath} (${new Intl.NumberFormat("en-US", {
notation: "compact",
unit: "kilobyte",
}).format(Buffer.byteLength(content, "utf-8"))})`,
);
return localPath;
}
} catch (error) {
// Continue to next variation
}
}
}
throw new Error(`❌ Could not find test: ${testName}`);
}
// Get test name from command line arguments
let testName = process.argv[2];
if (testName.startsWith(path.join(import.meta.dirname, ".."))) {
testName = testName.slice(path.join(import.meta.dirname, "..").length);
}
if (testName.startsWith("test/parallel/")) {
testName = testName.replace("test/parallel/", "");
} else if (testName.startsWith("test/sequential/")) {
testName = testName.replace("test/sequential/", "");
}
if (!testName) {
console.error("Usage: bun scripts/fetch-node-test.ts <test-name>");
process.exit(1);View on GitHub (pinned to 8c5296ac45)