@@ -51,6 +51,14 @@ describe("kv", () => {
5151 ) ;
5252 }
5353
54+ it ( "should show the jurisdiction option in help" , async ( { expect } ) => {
55+ await runWrangler ( "kv namespace create --help" ) ;
56+
57+ expect ( std . out ) . toMatch (
58+ / - - j u r i s d i c t i o n \s + T h e j u r i s d i c t i o n w h e r e t h e n e w n a m e s p a c e w i l l b e c r e a t e d \( e .g . " u s " , " e u " , " f e d r a m p " \) \s { 2 } \[ s t r i n g \] /
59+ ) ;
60+ } ) ;
61+
5462 it ( "should error if no namespace is given" , async ( { expect } ) => {
5563 await expect (
5664 runWrangler ( "kv namespace create" )
@@ -78,6 +86,7 @@ describe("kv", () => {
7886
7987 OPTIONS
8088 --preview Interact with a preview namespace [boolean]
89+ --jurisdiction The jurisdiction where the new namespace will be created (e.g. "us", "eu", "fedramp") [string]
8190 --use-remote Use a remote binding when adding the newly created resource to your config [boolean]
8291 --update-config Automatically update your config file with the newly added resource [boolean]
8392 --binding The binding name of this resource in your Worker [string]"
@@ -118,6 +127,7 @@ describe("kv", () => {
118127
119128 OPTIONS
120129 --preview Interact with a preview namespace [boolean]
130+ --jurisdiction The jurisdiction where the new namespace will be created (e.g. "us", "eu", "fedramp") [string]
121131 --use-remote Use a remote binding when adding the newly created resource to your config [boolean]
122132 --update-config Automatically update your config file with the newly added resource [boolean]
123133 --binding The binding name of this resource in your Worker [string]"
0 commit comments