You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/wrangler/src/__tests__/deploy.test.ts
+20-16Lines changed: 20 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -464,13 +464,16 @@ describe("deploy", () => {
464
464
).rejects.toThrowErrorMatchingInlineSnapshot(
465
465
`[APIError: A request to the Cloudflare API (/accounts/some-account-id/workers/services/test-name) failed.]`
466
466
);
467
-
expect(std.out).toMatchInlineSnapshot(`
468
-
"
469
-
[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/services/test-name) failed.[0m
467
+
expect(std).toMatchInlineSnapshot(`
468
+
Object {
469
+
"debug": "",
470
+
"err": "[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/services/test-name) failed.[0m
470
471
471
472
Authentication error [code: 10000]
472
473
473
-
474
+
",
475
+
"info": "",
476
+
"out": "
474
477
📎 It looks like you are authenticating Wrangler via a custom API token set in an environment variable.
475
478
Please ensure it has the correct permissions for this operation.
476
479
@@ -486,7 +489,9 @@ describe("deploy", () => {
486
489
├─┼─┤
487
490
│ Account Three │ account-3 │
488
491
└─┴─┘
489
-
🔓 To see token permissions visit https://dash.cloudflare.com/profile/api-tokens."
492
+
🔓 To see token permissions visit https://dash.cloudflare.com/profile/api-tokens.",
493
+
"warn": "",
494
+
}
490
495
`);
491
496
});
492
497
@@ -11381,18 +11386,17 @@ export default{
11381
11386
expect(std).toMatchInlineSnapshot(`
11382
11387
Object {
11383
11388
"debug": "",
11384
-
"err": "",
11385
-
"info": "",
11386
-
"out": "Total Upload: xx KiB / gzip: xx KiB
11387
-
11388
-
[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/test-name/versions) failed.[0m
11389
+
"err": "[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/test-name/versions) failed.[0m
11389
11390
11390
11391
Worker Startup Timed out. This could be due to script exceeding size limits or expensive code in
11391
11392
the global scope. [code: 11337]
11392
11393
11393
11394
If you think this is a bug, please open an issue at:
"warn": "[33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m🚧 \`wrangler pages download config\` is an experimental command. Please report any issues to https://github.com/cloudflare/workers-sdk/issues/new/choose[0m
`[APIError: A request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.]`
738
738
);
739
739
740
-
expect(std.out).toMatchInlineSnapshot(`
741
-
"🌀 Creating the secrets for the Worker \\"script-name\\"
742
-
743
-
🚨 Secrets failed to upload
744
-
745
-
[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.[0m
740
+
expect(std).toMatchInlineSnapshot(`
741
+
Object {
742
+
"debug": "",
743
+
"err": "[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.[0m
746
744
747
745
This is a helpful error [code: 1]
748
746
749
747
If you think this is a bug, please open an issue at:
`[APIError: A request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.]`
1187
1187
);
1188
1188
1189
-
expect(std.out).toMatchInlineSnapshot(`
1190
-
"
1191
-
⛅️ wrangler x.x.x
1192
-
──────────────────
1193
-
🌀 Creating the secrets for the Worker \\"script-name\\"
1194
-
1195
-
🚨 Secrets failed to upload
1196
-
1197
-
[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.[0m
1189
+
expect(std).toMatchInlineSnapshot(`
1190
+
Object {
1191
+
"debug": "",
1192
+
"err": "[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.[0m
1198
1193
1199
1194
This is a helpful error [code: 1]
1200
1195
1201
1196
If you think this is a bug, please open an issue at:
0 commit comments