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
+58Lines changed: 58 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15285,6 +15285,32 @@ export default{
15285
15285
`);
15286
15286
});
15287
15287
15288
+
it("should not present a diff warning to the user when there are differences between the local config (json/jsonc) and the dash config in dry-run mode", async () => {
15289
+
writeWorkerSource();
15290
+
writeWranglerConfig(
15291
+
{
15292
+
compatibility_date: "2024-04-24",
15293
+
main: "./index.js",
15294
+
workers_dev: true,
15295
+
preview_urls: true,
15296
+
vars: {
15297
+
MY_VAR: 123,
15298
+
},
15299
+
observability: {
15300
+
enabled: true,
15301
+
},
15302
+
},
15303
+
"./wrangler.json"
15304
+
);
15305
+
15306
+
// Note: we don't set any mocks here since in dry-run we don't expect wragnler to interact
"▲ [WARNING] Environment variable \`MY_SECRET\` conflicts with an existing remote secret. This deployment will replace the remote secret with your environment variable.
15604
15631
15605
15632
"
15606
15633
`);
15607
15634
});
15608
15635
15636
+
it("should not fetch remote secrets in dry-run mode", async () => {
15637
+
writeWorkerSource();
15638
+
writeWranglerConfig(
15639
+
{
15640
+
compatibility_date: "2024-04-24",
15641
+
main: "./index.js",
15642
+
vars: {
15643
+
MY_SECRET: 123,
15644
+
},
15645
+
observability: {
15646
+
enabled: true,
15647
+
},
15648
+
},
15649
+
"./wrangler.json"
15650
+
);
15651
+
15652
+
// Note: we don't set any mocks here since in dry-run we don't expect wragnler to interact
"▲ [WARNING] Environment variable \`MY_SECRET\` conflicts with an existing remote secret. This deployment will replace the remote secret with your environment variable.
0 commit comments