We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42f998a commit 50e8afcCopy full SHA for 50e8afc
config.js
@@ -69,7 +69,9 @@ module.exports = figgyPudding({
69
scope: {},
70
spec: {},
71
'strict-ssl': {},
72
- timeout: {},
+ timeout: {
73
+ default: 30 * 1000
74
+ },
75
'user-agent': {
76
default: `${
77
pkg.name
test/config.js
@@ -20,3 +20,13 @@ test('isFromCI config option', t => {
20
t.notOk(OPTS.isFromCI, 'should be false if not on a CI env')
21
t.end()
22
})
23
+
24
+test('default timeout', t => {
25
+ const DEFAULT_OPTS = config({})
26
+ t.equal(DEFAULT_OPTS.timeout, 30 * 1000, 'default timeout is 30s')
27
+ const SPECIFIED_OPTS = config({
28
+ timeout: 15 * 1000
29
+ })
30
+ t.equal(SPECIFIED_OPTS.timeout, 15 * 1000, 'default timeout can be overridden')
31
+ t.end()
32
+})
0 commit comments