@@ -269,9 +269,15 @@ describe("r2", () => {
269
269
) ;
270
270
await runWrangler ( "r2 bucket create testBucket" ) ;
271
271
expect ( std . out ) . toMatchInlineSnapshot ( `
272
- "Creating bucket 'testBucket'...
273
- ✅ Created bucket 'testBucket' with default storage class of Standard."
274
- ` ) ;
272
+ "Creating bucket 'testBucket'...
273
+ ✅ Created bucket 'testBucket' with default storage class of Standard.
274
+
275
+ Configure your Worker to write objects to this bucket:
276
+
277
+ [[r2_buckets]]
278
+ bucket_name = \\"testBucket\\"
279
+ binding = \\"testBucket\\""
280
+ ` ) ;
275
281
} ) ;
276
282
277
283
it ( "should create a bucket with the expected jurisdiction" , async ( ) => {
@@ -290,17 +296,29 @@ describe("r2", () => {
290
296
) ;
291
297
await runWrangler ( "r2 bucket create testBucket -J eu" ) ;
292
298
expect ( std . out ) . toMatchInlineSnapshot ( `
293
- "Creating bucket 'testBucket (eu)'...
294
- ✅ Created bucket 'testBucket (eu)' with default storage class of Standard."
295
- ` ) ;
299
+ "Creating bucket 'testBucket (eu)'...
300
+ ✅ Created bucket 'testBucket (eu)' with default storage class of Standard.
301
+
302
+ Configure your Worker to write objects to this bucket:
303
+
304
+ [[r2_buckets]]
305
+ bucket_name = \\"testBucket\\"
306
+ binding = \\"testBucket\\""
307
+ ` ) ;
296
308
} ) ;
297
309
298
310
it ( "should create a bucket with the expected default storage class" , async ( ) => {
299
311
await runWrangler ( "r2 bucket create testBucket -s InfrequentAccess" ) ;
300
312
expect ( std . out ) . toMatchInlineSnapshot ( `
301
- "Creating bucket 'testBucket'...
302
- ✅ Created bucket 'testBucket' with default storage class of InfrequentAccess."
303
- ` ) ;
313
+ "Creating bucket 'testBucket'...
314
+ ✅ Created bucket 'testBucket' with default storage class of InfrequentAccess.
315
+
316
+ Configure your Worker to write objects to this bucket:
317
+
318
+ [[r2_buckets]]
319
+ bucket_name = \\"testBucket\\"
320
+ binding = \\"testBucket\\""
321
+ ` ) ;
304
322
} ) ;
305
323
306
324
it ( "should error if storage class is invalid" , async ( ) => {
@@ -340,9 +358,15 @@ describe("r2", () => {
340
358
) ;
341
359
await runWrangler ( "r2 bucket create testBucket --location weur" ) ;
342
360
expect ( std . out ) . toMatchInlineSnapshot ( `
343
- "Creating bucket 'testBucket'...
344
- ✅ Created bucket 'testBucket' with location hint weur and default storage class of Standard."
345
- ` ) ;
361
+ "Creating bucket 'testBucket'...
362
+ ✅ Created bucket 'testBucket' with location hint weur and default storage class of Standard.
363
+
364
+ Configure your Worker to write objects to this bucket:
365
+
366
+ [[r2_buckets]]
367
+ bucket_name = \\"testBucket\\"
368
+ binding = \\"testBucket\\""
369
+ ` ) ;
346
370
} ) ;
347
371
} ) ;
348
372
0 commit comments