@@ -112,7 +112,7 @@ describe("readOptions", () => {
112
112
. object ( { base : optionsSchemaShape . base } )
113
113
. safeParse ( { base : "b" } ) ;
114
114
115
- const actual = await readOptions ( [ "--base" , "b" ] ) ;
115
+ const actual = await readOptions ( [ "--base" , "b" ] , "create" ) ;
116
116
117
117
expect ( actual ) . toStrictEqual ( {
118
118
cancelled : true ,
@@ -126,7 +126,7 @@ describe("readOptions", () => {
126
126
mockDetectEmailRedundancy . mockReturnValue ( error ) ;
127
127
mockGetPrefillOrPromptedOption . mockImplementation ( ( ) => undefined ) ;
128
128
129
- expect ( await readOptions ( [ ] ) ) . toStrictEqual ( {
129
+ expect ( await readOptions ( [ ] , "create" ) ) . toStrictEqual ( {
130
130
cancelled : true ,
131
131
error,
132
132
options : {
@@ -139,7 +139,7 @@ describe("readOptions", () => {
139
139
mockDetectEmailRedundancy . mockReturnValue ( false ) ;
140
140
mockGetPrefillOrPromptedOption . mockImplementation ( ( ) => undefined ) ;
141
141
142
- expect ( await readOptions ( [ ] ) ) . toStrictEqual ( {
142
+ expect ( await readOptions ( [ ] , "create" ) ) . toStrictEqual ( {
143
143
cancelled : true ,
144
144
options : {
145
145
...emptyOptions ,
@@ -153,7 +153,7 @@ describe("readOptions", () => {
153
153
. mockImplementationOnce ( ( ) => "MockOwner" )
154
154
. mockImplementation ( ( ) => undefined ) ;
155
155
156
- expect ( await readOptions ( [ ] ) ) . toStrictEqual ( {
156
+ expect ( await readOptions ( [ ] , "create" ) ) . toStrictEqual ( {
157
157
cancelled : true ,
158
158
options : {
159
159
...emptyOptions ,
@@ -170,7 +170,7 @@ describe("readOptions", () => {
170
170
. mockImplementation ( ( ) => undefined ) ;
171
171
mockEnsureRepositoryExists . mockResolvedValue ( { } ) ;
172
172
173
- expect ( await readOptions ( [ ] ) ) . toStrictEqual ( {
173
+ expect ( await readOptions ( [ ] , "create" ) ) . toStrictEqual ( {
174
174
cancelled : true ,
175
175
options : {
176
176
...emptyOptions ,
@@ -191,7 +191,7 @@ describe("readOptions", () => {
191
191
repository : mockOptions . repository ,
192
192
} ) ;
193
193
194
- expect ( await readOptions ( [ ] ) ) . toStrictEqual ( {
194
+ expect ( await readOptions ( [ ] , "create" ) ) . toStrictEqual ( {
195
195
cancelled : true ,
196
196
options : {
197
197
...emptyOptions ,
@@ -213,7 +213,7 @@ describe("readOptions", () => {
213
213
repository : mockOptions . repository ,
214
214
} ) ;
215
215
216
- expect ( await readOptions ( [ ] ) ) . toStrictEqual ( {
216
+ expect ( await readOptions ( [ ] , "create" ) ) . toStrictEqual ( {
217
217
cancelled : true ,
218
218
options : {
219
219
...emptyOptions ,
@@ -236,7 +236,7 @@ describe("readOptions", () => {
236
236
repository : mockOptions . repository ,
237
237
} ) ;
238
238
239
- expect ( await readOptions ( [ "--logo" , "logo.svg" ] ) ) . toStrictEqual ( {
239
+ expect ( await readOptions ( [ "--logo" , "logo.svg" ] , "create" ) ) . toStrictEqual ( {
240
240
cancelled : true ,
241
241
options : {
242
242
...emptyOptions ,
@@ -260,7 +260,7 @@ describe("readOptions", () => {
260
260
repository : mockOptions . repository ,
261
261
} ) ;
262
262
263
- expect ( await readOptions ( [ ] ) ) . toStrictEqual ( {
263
+ expect ( await readOptions ( [ ] , "create" ) ) . toStrictEqual ( {
264
264
cancelled : true ,
265
265
options : {
266
266
...emptyOptions ,
@@ -286,7 +286,7 @@ describe("readOptions", () => {
286
286
} ) ;
287
287
mockAugmentOptionsWithExcludes . mockResolvedValue ( undefined ) ;
288
288
289
- expect ( await readOptions ( [ ] ) ) . toStrictEqual ( {
289
+ expect ( await readOptions ( [ ] , "create" ) ) . toStrictEqual ( {
290
290
cancelled : true ,
291
291
options : {
292
292
...emptyOptions ,
@@ -305,7 +305,9 @@ describe("readOptions", () => {
305
305
} ) ;
306
306
mockGetPrefillOrPromptedOption . mockImplementation ( ( ) => "mock" ) ;
307
307
308
- expect ( await readOptions ( [ "--base" , mockOptions . base ] ) ) . toStrictEqual ( {
308
+ expect (
309
+ await readOptions ( [ "--base" , mockOptions . base ] , "create" ) ,
310
+ ) . toStrictEqual ( {
309
311
cancelled : false ,
310
312
github : mockOptions . github ,
311
313
options : {
0 commit comments