Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-08-25 00:39:47 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-08-25 17:57:16 +0300
commitaa0152b58f34f8cdae05be63853c6e0ace03236a (patch)
tree34330199db71ef3bd7832b157cf27f1a8d965c15 /test/lib/npm.js
parent9f200abb94ea2127d9a104c225159b1b7080c82c (diff)
Detect CI properly in flatOptions generation
* Also, test this with a mock, so that tests pass in CI. * test: streamline snapshot on config test * test: add workaround for node 10's broken promises * test: make cache dir cross-platform consistent in config test PR-URL: https://github.com/npm/cli/pull/1719 Credit: @isaacs Close: #1719 Reviewed-by: @ruyadorno
Diffstat (limited to 'test/lib/npm.js')
-rw-r--r--test/lib/npm.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lib/npm.js b/test/lib/npm.js
index 0185f8de3..296817849 100644
--- a/test/lib/npm.js
+++ b/test/lib/npm.js
@@ -323,6 +323,9 @@ t.test('npm.load', t => {
])
t.same(consoleLogs, [['@foo']])
})
+
+ // need this here or node 10 will improperly end the promise ahead of time
+ await new Promise((res) => setTimeout(res))
})
t.end()