diff options
author | Gar <gar+gh@danger.computer> | 2021-06-24 20:04:57 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-07-29 19:16:31 +0300 |
commit | 6a8086e258aa209b877e182db4b75f11de5b291d (patch) | |
tree | d24d982c63ba72e34acc32ff9b7ba99d9e6885d4 /package.json | |
parent | e7e1181702db2cf5d90b0c651ed5372b7ad13c74 (diff) |
fix(tests): move more tests to use real npm
This moves a handful of the smaller tests to using the new npm mock that
uses the real actual npm object. It also extends the testing surface
area of a few tests back down into the actual `process.spawn` that
results, instead of anything internal to the code.
Some dead code in `lib/test.js` was found during this, as well as an
instance of a module throwing a string instead of an error object.
PR-URL: https://github.com/npm/cli/pull/3463
Credit: @wraithgar
Close: #3463
Reviewed-by: @nlf
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json index b728f9f88..ec0d9c1c6 100644 --- a/package.json +++ b/package.json @@ -199,6 +199,7 @@ "eslint-plugin-promise": "^5.1.0", "eslint-plugin-standard": "^5.0.0", "licensee": "^8.2.0", + "spawk": "^1.7.1", "tap": "^15.0.9" }, "scripts": { |