diff --git a/.changeset/sharp-carrots-deliver.md b/.changeset/sharp-carrots-deliver.md new file mode 100644 index 000000000000..91b4228803a2 --- /dev/null +++ b/.changeset/sharp-carrots-deliver.md @@ -0,0 +1,7 @@ +--- +"wrangler": minor +--- + +feat: Also log when _no_ bindings are found. + +We currently print a worker's bindings during dev, versions upload and deploy. This just also prints something when there's no bindings found, in case you _were_ expecting bindings. diff --git a/packages/wrangler/e2e/deployments.test.ts b/packages/wrangler/e2e/deployments.test.ts index a820fa15a38b..f616de550e31 100644 --- a/packages/wrangler/e2e/deployments.test.ts +++ b/packages/wrangler/e2e/deployments.test.ts @@ -272,6 +272,7 @@ Uploaded 2 of 3 assets Uploaded 3 of 3 assets ✨ Success! Uploaded 3 files (TIMINGS) Total Upload: xx KiB / gzip: xx KiB +No bindings found. Uploaded tmp-e2e-worker-00000000-0000-0000-0000-000000000000 (TIMINGS) Deployed tmp-e2e-worker-00000000-0000-0000-0000-000000000000 triggers (TIMINGS) https://tmp-e2e-worker-00000000-0000-0000-0000-000000000000.SUBDOMAIN.workers.dev @@ -282,6 +283,7 @@ Current Version ID: 00000000-0000-0000-0000-000000000000`); 🌀 Starting asset upload... No files to upload. Proceeding with deployment... Total Upload: xx KiB / gzip: xx KiB +No bindings found. Uploaded tmp-e2e-worker-00000000-0000-0000-0000-000000000000 (TIMINGS) Deployed tmp-e2e-worker-00000000-0000-0000-0000-000000000000 triggers (TIMINGS) https://tmp-e2e-worker-00000000-0000-0000-0000-000000000000.SUBDOMAIN.workers.dev @@ -342,6 +344,7 @@ Uploaded 2 of 3 assets Uploaded 3 of 3 assets ✨ Success! Uploaded 3 files (TIMINGS) Total Upload: xx KiB / gzip: xx KiB +No bindings found. Uploaded tmp-e2e-worker-00000000-0000-0000-0000-000000000000 (TIMINGS) Dispatch Namespace: tmp-e2e-dispatch-00000000-0000-0000-0000-000000000000 Current Version ID: 00000000-0000-0000-0000-000000000000`); @@ -351,6 +354,7 @@ Current Version ID: 00000000-0000-0000-0000-000000000000`); 🌀 Starting asset upload... No files to upload. Proceeding with deployment... Total Upload: xx KiB / gzip: xx KiB +No bindings found. Uploaded tmp-e2e-worker-00000000-0000-0000-0000-000000000000 (TIMINGS) Dispatch Namespace: tmp-e2e-dispatch-00000000-0000-0000-0000-000000000000 Current Version ID: 00000000-0000-0000-0000-000000000000`); diff --git a/packages/wrangler/e2e/versions.test.ts b/packages/wrangler/e2e/versions.test.ts index d741f55dd4ce..1638be5c4936 100644 --- a/packages/wrangler/e2e/versions.test.ts +++ b/packages/wrangler/e2e/versions.test.ts @@ -64,6 +64,7 @@ describe("versions deploy", { timeout: TIMEOUT }, () => { expect(normalize(upload.stdout)).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: (TIMINGS) + No bindings found. Uploaded tmp-e2e-worker-00000000-0000-0000-0000-000000000000 (TIMINGS) Worker Version ID: 00000000-0000-0000-0000-000000000000 Version Preview URL: https://tmp-e2e-worker-PREVIEW-URL.SUBDOMAIN.workers.dev @@ -180,6 +181,7 @@ describe("versions deploy", { timeout: TIMEOUT }, () => { expect(normalize(upload.stdout)).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: (TIMINGS) + No bindings found. Uploaded tmp-e2e-worker-00000000-0000-0000-0000-000000000000 (TIMINGS) Worker Version ID: 00000000-0000-0000-0000-000000000000 Version Preview URL: https://tmp-e2e-worker-PREVIEW-URL.SUBDOMAIN.workers.dev @@ -614,6 +616,7 @@ describe("versions deploy", { timeout: TIMEOUT }, () => { ✨ Success! Uploaded 1 file (TIMINGS) Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: (TIMINGS) + No bindings found. Uploaded tmp-e2e-worker-00000000-0000-0000-0000-000000000000 (TIMINGS) Worker Version ID: 00000000-0000-0000-0000-000000000000 Version Preview URL: https://tmp-e2e-worker-PREVIEW-URL.SUBDOMAIN.workers.dev diff --git a/packages/wrangler/src/__tests__/deploy.test.ts b/packages/wrangler/src/__tests__/deploy.test.ts index d2280d400881..86e7e185dafd 100644 --- a/packages/wrangler/src/__tests__/deploy.test.ts +++ b/packages/wrangler/src/__tests__/deploy.test.ts @@ -109,6 +109,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -166,6 +167,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -429,6 +431,7 @@ describe("deploy", () => { "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Worker ID: abc12345 Worker ETag: etag98765 Worker PipelineHash: hash9999 @@ -469,6 +472,7 @@ describe("deploy", () => { Successfully logged in. Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -510,6 +514,7 @@ describe("deploy", () => { Successfully logged in. Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -534,6 +539,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -568,6 +574,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -592,6 +599,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -771,6 +779,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-some-env (TIMINGS) Deployed test-name-some-env triggers (TIMINGS) https://test-name-some-env.test-sub-domain.workers.dev @@ -793,6 +802,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -815,6 +825,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-some-env (TIMINGS) Deployed test-name-some-env triggers (TIMINGS) https://test-name-some-env.test-sub-domain.workers.dev @@ -837,6 +848,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-some-env (TIMINGS) Deployed test-name-some-env triggers (TIMINGS) https://test-name-some-env.test-sub-domain.workers.dev @@ -910,6 +922,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -940,6 +953,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (some-env) (TIMINGS) Deployed test-name (some-env) triggers (TIMINGS) https://some-env.test-name.test-sub-domain.workers.dev @@ -1025,6 +1039,7 @@ describe("deploy", () => { "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -1074,6 +1089,7 @@ describe("deploy", () => { "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) some-example.com/some-route/* @@ -1118,6 +1134,7 @@ describe("deploy", () => { "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) partner.com/* (zone name: owned-zone.com) @@ -1158,6 +1175,7 @@ describe("deploy", () => { "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) subdomain.partner.com/* (zone name: owned-zone.com) @@ -1219,6 +1237,7 @@ describe("deploy", () => { "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (staging) (TIMINGS) Deployed test-name (staging) triggers (TIMINGS) some-example.com/some-route/* @@ -1331,6 +1350,7 @@ describe("deploy", () => { expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) example.com/some-route/* @@ -1708,6 +1728,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) simple.co.uk/path/* @@ -1774,6 +1795,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) example.com/blog/* (zone id: asdfadsf) @@ -1840,6 +1862,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) example.com/blog/* (zone id: asdfadsf) @@ -1919,6 +1942,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) simple.co.uk/path/* @@ -1947,6 +1971,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -1969,6 +1994,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -1988,6 +2014,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2009,6 +2036,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2028,6 +2056,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2066,6 +2095,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2118,6 +2148,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2140,6 +2171,7 @@ Update them to point to this script instead?`, expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2173,6 +2205,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2200,6 +2233,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2219,6 +2253,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2256,15 +2291,16 @@ export default {};` `); expect(std).toMatchInlineSnapshot(` - Object { - "debug": "", - "err": "", - "info": "", - "out": "Total Upload: xx KiB / gzip: xx KiB - --dry-run: exiting now.", - "warn": "", - } - `); + Object { + "debug": "", + "err": "", + "info": "", + "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. + --dry-run: exiting now.", + "warn": "", + } + `); }); it("should not preserve exports on a service-worker format worker", async () => { @@ -2290,17 +2326,18 @@ addEventListener('fetch', event => {});` ).toMatchInlineSnapshot(`Array []`); expect(std).toMatchInlineSnapshot(` - Object { - "debug": "", - "err": "", - "info": "", - "out": "Total Upload: xx KiB / gzip: xx KiB - --dry-run: exiting now.", - "warn": "▲ [WARNING] The entrypoint index.js has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building the worker using \\"service-worker\\" format... + Object { + "debug": "", + "err": "", + "info": "", + "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. + --dry-run: exiting now.", + "warn": "▲ [WARNING] The entrypoint index.js has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building the worker using \\"service-worker\\" format... - ", - } - `); + ", + } + `); }); it("should be able to transpile entry-points in sub-directories (sw)", async () => { @@ -2318,6 +2355,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2401,6 +2439,7 @@ addEventListener('fetch', event => {});` "out": "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2459,6 +2498,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2561,6 +2601,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2719,6 +2760,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2762,6 +2804,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2942,6 +2985,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -2995,6 +3039,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3051,6 +3096,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3115,6 +3161,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3229,6 +3276,7 @@ addEventListener('fetch', event => {});` ↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3285,6 +3333,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (some-env) (TIMINGS) Deployed test-name (some-env) triggers (TIMINGS) https://some-env.test-name.test-sub-domain.workers.dev @@ -3341,6 +3390,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-some-env (TIMINGS) Deployed test-name-some-env triggers (TIMINGS) https://test-name-some-env.test-sub-domain.workers.dev @@ -3382,6 +3432,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3429,6 +3480,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3476,6 +3528,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3524,6 +3577,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3572,6 +3626,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3620,6 +3675,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3668,6 +3724,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3718,6 +3775,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3772,6 +3830,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -3882,6 +3941,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -4021,6 +4081,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -4081,6 +4142,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -4126,6 +4188,7 @@ addEventListener('fetch', event => {});` "out": "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -4179,6 +4242,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -4392,6 +4456,7 @@ addEventListener('fetch', event => {});` "out": "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -5699,6 +5764,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -5722,6 +5788,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -5744,6 +5811,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -5767,6 +5835,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -5791,6 +5860,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -5813,6 +5883,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) No deploy targets for test-name (TIMINGS) Current Version ID: Galaxy-Class" @@ -5835,6 +5906,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) No deploy targets for test-name (TIMINGS) Current Version ID: Galaxy-Class" @@ -5856,6 +5928,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) No deploy targets for test-name (TIMINGS) Current Version ID: Galaxy-Class" @@ -5878,6 +5951,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) No deploy targets for test-name (TIMINGS) Current Version ID: Galaxy-Class" @@ -5906,6 +5980,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (dev) (TIMINGS) No deploy targets for test-name (dev) (TIMINGS) Current Version ID: Galaxy-Class" @@ -5934,6 +6009,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (dev) (TIMINGS) No deploy targets for test-name (dev) (TIMINGS) Current Version ID: undefined" @@ -5963,6 +6039,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (dev) (TIMINGS) Deployed test-name (dev) triggers (TIMINGS) https://dev.test-name.test-sub-domain.workers.dev @@ -5994,6 +6071,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (dev) (TIMINGS) Deployed test-name (dev) triggers (TIMINGS) https://dev.test-name.test-sub-domain.workers.dev @@ -6025,6 +6103,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (dev) (TIMINGS) Deployed test-name (dev) triggers (TIMINGS) https://dev.test-name.test-sub-domain.workers.dev @@ -6059,6 +6138,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (dev) (TIMINGS) Deployed test-name (dev) triggers (TIMINGS) https://dev.test-name.test-sub-domain.workers.dev @@ -6094,6 +6174,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (dev) (TIMINGS) Deployed test-name (dev) triggers (TIMINGS) https://dev.test-name.test-sub-domain.workers.dev @@ -6157,6 +6238,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -6178,6 +6260,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -6257,6 +6340,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) http://example.com/* @@ -6294,6 +6378,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-production (TIMINGS) Deployed test-name-production triggers (TIMINGS) http://production.example.com/* @@ -6331,6 +6416,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-production (TIMINGS) Deployed test-name-production triggers (TIMINGS) http://production.example.com/* @@ -6362,6 +6448,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -6404,6 +6491,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-production (TIMINGS) Deployed test-name-production triggers (TIMINGS) https://test-name-production.test-sub-domain.workers.dev @@ -6446,6 +6534,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-production (TIMINGS) Deployed test-name-production triggers (TIMINGS) https://test-name-production.test-sub-domain.workers.dev @@ -6485,6 +6574,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-production (TIMINGS) Deployed test-name-production triggers (TIMINGS) http://production.example.com/* @@ -6523,6 +6613,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name-production (TIMINGS) Deployed test-name-production triggers (TIMINGS) http://production.example.com/* @@ -6675,6 +6766,7 @@ addEventListener('fetch', event => {});` "Running custom build: node -e \\"4+4; require('fs').writeFileSync('index.js', 'export default { fetch(){ return new Response(123) } }')\\" Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -6702,6 +6794,7 @@ addEventListener('fetch', event => {});` "Running custom build: echo \\"export default { fetch(){ return new Response(123) } }\\" > index.js Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -6810,6 +6903,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -6851,6 +6945,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (testEnv) (TIMINGS) Deployed test-name (testEnv) triggers (TIMINGS) https://testEnv.test-name.test-sub-domain.workers.dev @@ -7475,6 +7570,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -7499,6 +7595,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -8285,6 +8382,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9403,6 +9501,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9507,6 +9606,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9552,6 +9652,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9583,6 +9684,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9618,6 +9720,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9669,6 +9772,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9770,6 +9874,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9801,6 +9906,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9833,6 +9939,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -9976,6 +10083,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10007,6 +10115,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10040,6 +10149,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10071,6 +10181,7 @@ addEventListener('fetch', event => {});` expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10115,6 +10226,7 @@ addEventListener('fetch', event => {});` "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10167,6 +10279,7 @@ addEventListener('fetch', event => {});` "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10193,6 +10306,7 @@ addEventListener('fetch', event => {});` "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10236,6 +10350,7 @@ addEventListener('fetch', event => {});` "↗️ Done syncing assets Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10291,6 +10406,7 @@ export default{ "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10349,6 +10465,7 @@ export default{ "err": "", "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. --dry-run: exiting now.", "warn": "▲ [WARNING] You are using \`node_compat\`, which is a legacy Node.js compatibility option. Instead, use the \`nodejs_compat\` compatibility flag. This includes the functionality from legacy \`node_compat\` polyfills and natively implemented Node.js APIs. See https://developers.cloudflare.com/workers/runtime-apis/nodejs for more information. @@ -10509,6 +10626,7 @@ export default{ "err": "", "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. --dry-run: exiting now.", "warn": "▲ [WARNING] You are using \`node_compat\`, which is a legacy Node.js compatibility option. Instead, use the \`nodejs_compat\` compatibility flag. This includes the functionality from legacy \`node_compat\` polyfills and natively implemented Node.js APIs. See https://developers.cloudflare.com/workers/runtime-apis/nodejs for more information. @@ -10559,15 +10677,16 @@ export default{ ); expect(std).toMatchInlineSnapshot(` - Object { - "debug": "", - "err": "", - "info": "", - "out": "Total Upload: xx KiB / gzip: xx KiB - --dry-run: exiting now.", - "warn": "", - } - `); + Object { + "debug": "", + "err": "", + "info": "", + "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. + --dry-run: exiting now.", + "warn": "", + } + `); expect(fs.readFileSync("dist/index.js", { encoding: "utf-8" })).toContain( `import path from "node:path";` ); @@ -10591,15 +10710,16 @@ export default{ ); expect(std).toMatchInlineSnapshot(` - Object { - "debug": "", - "err": "", - "info": "", - "out": "Total Upload: xx KiB / gzip: xx KiB - --dry-run: exiting now.", - "warn": "", - } - `); + Object { + "debug": "", + "err": "", + "info": "", + "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. + --dry-run: exiting now.", + "warn": "", + } + `); expect(fs.readFileSync("dist/index.js", { encoding: "utf-8" })).toContain( `import path from "node:path";` ); @@ -10670,6 +10790,7 @@ export default{ "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -10734,6 +10855,7 @@ export default{ "err": "", "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. X [ERROR] A request to the Cloudflare API (/accounts/some-account-id/workers/scripts/test-name/versions) failed. @@ -10806,6 +10928,7 @@ export default{ "err": "", "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. X [ERROR] A request to the Cloudflare API (/accounts/some-account-id/workers/scripts/test-name/versions) failed. @@ -10873,6 +10996,7 @@ export default{ "err": "", "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB + No bindings found. X [ERROR] A request to the Cloudflare API (/accounts/some-account-id/workers/scripts/test-name/versions) failed. @@ -11204,6 +11328,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -11257,6 +11382,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded command-line-arg-script-name (TIMINGS) Deployed command-line-arg-script-name triggers (TIMINGS) https://command-line-arg-script-name.test-sub-domain.workers.dev @@ -11317,6 +11443,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -11382,6 +11509,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -11434,6 +11562,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -11494,6 +11623,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -11554,6 +11684,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -11615,6 +11746,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -11676,6 +11808,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -11965,6 +12098,7 @@ export default{ └──────────────────────────────────────┴────────┴──────────┘ Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -12001,6 +12135,7 @@ export default{ └──────────────────────────────────────┴────────┴──────────┘ Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -12132,6 +12267,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -12156,6 +12292,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -12182,6 +12319,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -12213,6 +12351,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Dispatch Namespace: test-dispatch-namespace Current Version ID: undefined" @@ -12241,6 +12380,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -12278,6 +12418,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev @@ -12301,6 +12442,7 @@ export default{ expect(std.out).toMatchInlineSnapshot(` "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev diff --git a/packages/wrangler/src/__tests__/deprecated-usage-model.test.ts b/packages/wrangler/src/__tests__/deprecated-usage-model.test.ts index cb7c254888e6..c2b37372b274 100644 --- a/packages/wrangler/src/__tests__/deprecated-usage-model.test.ts +++ b/packages/wrangler/src/__tests__/deprecated-usage-model.test.ts @@ -63,6 +63,7 @@ describe("deprecated-usage-model", () => { "info": "", "out": "Total Upload: xx KiB / gzip: xx KiB Worker Startup Time: 100 ms + No bindings found. Uploaded test-name (TIMINGS) Deployed test-name triggers (TIMINGS) https://test-name.test-sub-domain.workers.dev diff --git a/packages/wrangler/src/__tests__/dev.test.ts b/packages/wrangler/src/__tests__/dev.test.ts index 00560b045321..ec13e85cbc6d 100644 --- a/packages/wrangler/src/__tests__/dev.test.ts +++ b/packages/wrangler/src/__tests__/dev.test.ts @@ -836,6 +836,7 @@ describe.sequential("wrangler dev", () => { expect(std.out).toMatchInlineSnapshot( ` "Running custom build: node -e \\"4+4; require('fs').writeFileSync('index.js', 'export default { fetch(){ return new Response(123) } }')\\" + No bindings found. " ` ); @@ -860,6 +861,7 @@ describe.sequential("wrangler dev", () => { expect(std.out).toMatchInlineSnapshot( ` "Running custom build: echo \\"export default { fetch(){ return new Response(123) } }\\" > index.js + No bindings found. " ` ); diff --git a/packages/wrangler/src/__tests__/index.test.ts b/packages/wrangler/src/__tests__/index.test.ts index 8bfc0b45bb16..025fe4d84873 100644 --- a/packages/wrangler/src/__tests__/index.test.ts +++ b/packages/wrangler/src/__tests__/index.test.ts @@ -290,16 +290,17 @@ describe("wrangler", () => { await runWrangler("build"); await endEventLoop(); expect(std.out).toMatchInlineSnapshot(` - "▲ [WARNING] Deprecation: \`wrangler build\` has been deprecated. + "▲ [WARNING] Deprecation: \`wrangler build\` has been deprecated. - Please refer to https://developers.cloudflare.com/workers/wrangler/migration/deprecations/#build - for more information. - Attempting to run \`wrangler deploy --dry-run --outdir=dist\` for you instead: + Please refer to https://developers.cloudflare.com/workers/wrangler/migration/deprecations/#build + for more information. + Attempting to run \`wrangler deploy --dry-run --outdir=dist\` for you instead: - Total Upload: xx KiB / gzip: xx KiB - --dry-run: exiting now." - `); + Total Upload: xx KiB / gzip: xx KiB + No bindings found. + --dry-run: exiting now." + `); }); describe("logPossibleBugMessage()", () => { diff --git a/packages/wrangler/src/utils/print-bindings.ts b/packages/wrangler/src/utils/print-bindings.ts index aad0cd0ae0b0..31f5e4e732b7 100644 --- a/packages/wrangler/src/utils/print-bindings.ts +++ b/packages/wrangler/src/utils/print-bindings.ts @@ -467,6 +467,7 @@ export function printBindings( } if (output.length === 0) { + logger.log("No bindings found."); return; }