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:
authorGar <gar+gh@danger.computer>2022-02-24 21:29:16 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2022-03-10 18:40:11 +0300
commit55ab38c5337de76b739c4f0cdfb8932dc5420ce4 (patch)
treefef3864c7934135bdbd88d13b6d3f28917c557f9 /tap-snapshots/test/lib
parent1c182e11d524294d85348a3c2566f266bd281c00 (diff)
fix(doctor): allow for missing local bin and node_modules
Diffstat (limited to 'tap-snapshots/test/lib')
-rw-r--r--tap-snapshots/test/lib/commands/doctor.js.test.cjs58
1 files changed, 58 insertions, 0 deletions
diff --git a/tap-snapshots/test/lib/commands/doctor.js.test.cjs b/tap-snapshots/test/lib/commands/doctor.js.test.cjs
index 057b6f2e4..a28654e5d 100644
--- a/tap-snapshots/test/lib/commands/doctor.js.test.cjs
+++ b/tap-snapshots/test/lib/commands/doctor.js.test.cjs
@@ -826,6 +826,64 @@ Perms check on global bin folder not ok Check the permissions of files in {C
Verify cache contents ok verified 0 tarballs
`
+exports[`test/lib/commands/doctor.js TAP missing local node_modules > logs 1`] = `
+Object {
+ "error": Array [],
+ "info": Array [
+ Array [
+ "Running checkup",
+ ],
+ Array [
+ "checkPing",
+ "Pinging registry",
+ ],
+ Array [
+ "getLatestNpmVersion",
+ "Getting npm package information",
+ ],
+ Array [
+ "getLatestNodejsVersion",
+ "Getting Node.js release information",
+ ],
+ Array [
+ "getGitPath",
+ "Finding git in your PATH",
+ ],
+ Array [
+ "verifyCachedFiles",
+ "Verifying the npm cache",
+ ],
+ Array [
+ "verifyCachedFiles",
+ String(
+ Verification complete. Stats: {
+ "badContentCount": 0,
+ "reclaimedCount": 0,
+ "missingContent": 0,
+ "verifiedContent": 0
+ }
+ ),
+ ],
+ ],
+ "warn": Array [],
+}
+`
+
+exports[`test/lib/commands/doctor.js TAP missing local node_modules > missing local node_modules 1`] = `
+Check Value Recommendation/Notes
+npm ping ok
+npm -v ok current: v1.0.0, latest: v1.0.0
+node -v ok current: v1.0.0, recommended: v1.0.0
+npm config get registry ok using default registry (https://registry.npmjs.org/)
+which git ok /path/to/git
+Perms check on cached files ok
+Perms check on local node_modules ok
+Perms check on global node_modules ok
+Perms check on local bin folder ok
+Perms check on global bin folder ok
+Verify cache contents ok verified 0 tarballs
+`
+
exports[`test/lib/commands/doctor.js TAP node out of date - current > logs 1`] = `
Object {
"error": Array [],