Explicitly set or clear the encryption key for testing.
Bypasses Deno.env to avoid races between parallel test workers.
Automatically clears all crypto caches (encryption, HMAC, and any registered via onEncryptionKeyChange).
Parameters
key: string | null
Return Type
void
Usage
import { setEncryptionKeyForTest } from "docs/crypto.ts";