We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263e557 commit 27e4ed5Copy full SHA for 27e4ed5
test/index.js
@@ -315,4 +315,18 @@ suite(pkg.name, () => {
315
assert.strictEqual(o.foo, undefined)
316
assert.strictEqual(o.bar, undefined)
317
})
318
+
319
+ test('run without a promptModule override', async () => {
320
+ const opts = opta({
321
+ options: {
322
+ foo: {
323
+ prompt: false
324
+ }
325
326
+ })
327
328
+ await opts.prompt()()
329
+ const o = opts.values()
330
+ assert.strictEqual(o.foo, undefined)
331
332
0 commit comments