diff options
author | isaacs <i@izs.me> | 2020-08-25 00:39:47 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2020-08-25 17:57:16 +0300 |
commit | aa0152b58f34f8cdae05be63853c6e0ace03236a (patch) | |
tree | 34330199db71ef3bd7832b157cf27f1a8d965c15 /test/lib/npm.js | |
parent | 9f200abb94ea2127d9a104c225159b1b7080c82c (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.js | 3 |
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() |