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
* telemetry banner fix
* pass configpath into readRawConfig
* changeset
* Don't print banner when --json is provided to versions list and versions view
* fix lint 🤦
* Add tests asserting that versions view and versions list hide the Wrangler banner when --json is passed
* add telemetry test
---------
Co-authored-by: Samuel Macleod <[email protected]>
it("should *not* print the banner if command is not dev/deploy/docs",async()=>{
431
+
writeMetricsConfig({
432
+
permission: {
433
+
enabled: true,
434
+
date: newDate(2022,6,4),
435
+
bannerLastShown: "1.2.1",
436
+
},
437
+
});
438
+
constrequests=mockMetricRequest();
439
+
440
+
awaitrunWrangler("telemetry status");
441
+
expect(std.out).toMatchInlineSnapshot(`
442
+
"Status: Enabled
443
+
444
+
To configure telemetry globally on this machine, you can run \`wrangler telemetry disable / enable\`.
445
+
You can override this for individual projects with the environment variable \`WRANGLER_SEND_METRICS=true/false\`.
446
+
Learn more at https://github.com/cloudflare/workers-sdk/tree/main/telemetry.md
447
+
"
448
+
`);
449
+
expect(std.out).not.toContain(
450
+
"Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md"
0 commit comments