70bf21e064
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
13 lines
470 B
TypeScript
13 lines
470 B
TypeScript
// Regression test for #9957: In v3, `provide` data was sent via HTTP headers
|
|
// (~8 KB limit). Large payloads caused silent failures. v4 sends provide data
|
|
// through WebSocket messages (32 MiB limit).
|
|
import type { TestProject } from "vitest/node";
|
|
|
|
export default function ({ provide }: TestProject) {
|
|
// No ProvidedContext declaration for this key, so cast is needed
|
|
(provide as (key: string, value: unknown) => void)(
|
|
"largePayload",
|
|
"x".repeat(50_000)
|
|
);
|
|
}
|