test(FN-000): address follow-up review feedback

This commit is contained in:
Aron Prins
2026-05-07 18:08:08 +02:00
parent 76a2d8de80
commit 2bc0f53064
5 changed files with 29 additions and 24 deletions

View File

@@ -67,16 +67,6 @@ const DEFAULT_TEST_SUBPROCESS_TIMEOUT_MS = Math.max(
const BLOCKED_TEST_CLI_PATTERN =
/(^|[\s"'\\/])(?:claude|droid|paperclipai|hermes|openclaw)(?:\.(?:cmd|bat|ps1|exe))?(?=$|[\s"'\\/])/i;
const originalEmitWarning = process.emitWarning.bind(process);
process.emitWarning = ((warning: string | Error, ...args: unknown[]) => {
const message = typeof warning === "string" ? warning : warning?.message ?? "";
const type = typeof args[0] === "string" ? args[0] : (args[0] as { type?: string } | undefined)?.type;
if (type === "ExperimentalWarning" && message.includes("SQLite is an experimental feature")) {
return;
}
return (originalEmitWarning as (...a: unknown[]) => void)(warning, ...args);
}) as typeof process.emitWarning;
const originalCwd = process.cwd.bind(process);
function ensureValidCwd(): string {