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
@@ -67,6 +68,7 @@ describe("subcommand implicit help ran on incomplete command execution", () => {
67
68
afterEach(()=>{
68
69
unsetAllMocks();
69
70
});
71
+
70
72
functionmockListRequest(projects: unknown[]){
71
73
constrequests={count: 0};
72
74
setMockResponse(
@@ -249,4 +251,100 @@ describe("subcommand implicit help ran on incomplete command execution", () => {
249
251
expect(requests.count).toBe(1);
250
252
});
251
253
});
254
+
255
+
describe("deployment create",()=>{
256
+
letactualProcessEnvCI: string|undefined;
257
+
258
+
mockAccountId();
259
+
mockApiToken();
260
+
runInTempDir();
261
+
262
+
beforeEach(()=>{
263
+
actualProcessEnvCI=process.env.CI;
264
+
process.env.CI="true";
265
+
});
266
+
267
+
afterEach(()=>{
268
+
unsetAllMocks();
269
+
process.env.CI=actualProcessEnvCI;
270
+
});
271
+
272
+
it("should be aliased with 'wrangler pages publish'",async()=>{
273
+
awaitrunWrangler("pages publish --help");
274
+
awaitendEventLoop();
275
+
276
+
expect(std.out).toMatchInlineSnapshot(`
277
+
"wrangler pages publish [directory]
278
+
279
+
🆙 Publish a directory of static assets as a Pages deployment
280
+
281
+
Positionals:
282
+
directory The directory of Pages Functions [string] [default: \\"functions\\"]
283
+
284
+
Flags:
285
+
-c, --config Path to .toml configuration file [string]
286
+
-h, --help Show help [boolean]
287
+
-v, --version Show version number [boolean]
288
+
--legacy-env Use legacy environments [boolean]
289
+
290
+
Options:
291
+
--project The name of the project you want to list deployments for [string]
292
+
--branch The branch of the project you want to list deployments for [string]
293
+
--commit-hash The branch of the project you want to list deployments for [string]
294
+
--commit-message The branch of the project you want to list deployments for [string]
295
+
--commit-dirty The branch of the project you want to list deployments for [boolean]
296
+
297
+
🚧 'wrangler pages <command>' is a beta command. Please report any issues to https://github.com/cloudflare/wrangler2/issues/new/choose"
298
+
`);
299
+
});
300
+
301
+
it("should upload a directory of files",async()=>{
0 commit comments