{"record":{"id":"be0bb3aedd413c56","repo":"oven-sh/bun","slug":"could-not-find-test-testname","errorCode":null,"errorMessage":"❌ Could not find test: ${testName}","messagePattern":"❌ Could not find test: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/fetch-node-test.ts","lineNumber":86,"sourceCode":"          mkdirSync(dirname(localPath), { recursive: true });\n\n          // Write the file\n          writeFileSync(localPath, content);\n          console.log(\n            `✅ Successfully fetched and saved: ${localPath} (${new Intl.NumberFormat(\"en-US\", {\n              notation: \"compact\",\n              unit: \"kilobyte\",\n            }).format(Buffer.byteLength(content, \"utf-8\"))})`,\n          );\n          return localPath;\n        }\n      } catch (error) {\n        // Continue to next variation\n      }\n    }\n  }\n\n  throw new Error(`❌ Could not find test: ${testName}`);\n}\n\n// Get test name from command line arguments\nlet testName = process.argv[2];\n\nif (testName.startsWith(path.join(import.meta.dirname, \"..\"))) {\n  testName = testName.slice(path.join(import.meta.dirname, \"..\").length);\n}\n\nif (testName.startsWith(\"test/parallel/\")) {\n  testName = testName.replace(\"test/parallel/\", \"\");\n} else if (testName.startsWith(\"test/sequential/\")) {\n  testName = testName.replace(\"test/sequential/\", \"\");\n}\n\nif (!testName) {\n  console.error(\"Usage: bun scripts/fetch-node-test.ts <test-name>\");\n  process.exit(1);","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/scripts/fetch-node-test.ts#L68-L104","documentation":"Error \"❌ Could not find test: ${testName}\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at scripts/fetch-node-test.ts:86 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}