fix(testkit): macOS compat + fix test 8c ordering (#24)

This commit is contained in:
2026-03-18 21:01:13 -04:00
parent ca94c0a9e5
commit 83a2ec19e2
59 changed files with 4458 additions and 454 deletions

View File

@@ -1,5 +1,5 @@
import pLimit from "p-limit";
import pRetry from "p-retry";
import pRetry, { AbortError } from "p-retry";
/**
* Batch Processing Utilities
@@ -75,7 +75,7 @@ export async function batchProcess<T, R>(
if (isRateLimitError(error)) {
throw error;
}
throw new pRetry.AbortError(
throw new AbortError(
error instanceof Error ? error : new Error(String(error))
);
}
@@ -115,7 +115,7 @@ export async function batchProcessWithSSE<T, R>(
factor: 2,
onFailedAttempt: (error) => {
if (!isRateLimitError(error)) {
throw new pRetry.AbortError(
throw new AbortError(
error instanceof Error ? error : new Error(String(error))
);
}