File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
fixtures/mixed-mode-node-test/tests Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,16 @@ import { experimental_startMixedModeSession } from "wrangler";
66process . env . CLOUDFLARE_ACCOUNT_ID = process . env . TEST_CLOUDFLARE_ACCOUNT_ID ;
77process . env . CLOUDFLARE_API_TOKEN = process . env . TEST_CLOUDFLARE_API_TOKEN ;
88
9- describe ( "startMixedModeSession" , ( ) => {
9+ // Mixed Mode relies on deploying a Worker to a user's account, and so the following tests require authentication
10+ // This is provided in CI, but forks of the repo/running the fixture tests locally won't necessarily have authentication
11+ // As such, we skip the tests if authentication isn't provided.
12+ const baseDescribe =
13+ process . env . TEST_CLOUDFLARE_ACCOUNT_ID &&
14+ process . env . TEST_CLOUDFLARE_API_TOKEN
15+ ? describe
16+ : describe . skip ;
17+
18+ baseDescribe ( "startMixedModeSession" , ( ) => {
1019 test ( "simple AI request to the proxyServerWorker" , async ( ) => {
1120 const mixedModeSession = await experimental_startMixedModeSession ( {
1221 AI : {
You can’t perform that action at this time.
0 commit comments