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
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-05-22 02:19:01 +0400
committerisaacs <i@izs.me>2014-05-22 02:19:01 +0400
commite16cdb5c06ffa07f851a4eae0c87cda5b5aa7c13 (patch)
tree556f771b85c972441688bc6252865bc5f8a3c7c6 /test
parent413c579197309cd3e21be00463a8f6fc7db010a1 (diff)
config-meta test: skip over missing files
Happens in dev, but the ignore file prevents it from happening in an actual release.
Diffstat (limited to 'test')
-rw-r--r--test/tap/config-meta.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/tap/config-meta.js b/test/tap/config-meta.js
index 63cdd61c4..75a66604c 100644
--- a/test/tap/config-meta.js
+++ b/test/tap/config-meta.js
@@ -31,7 +31,12 @@ test("get files", function (t) {
return path.resolve(lib, f)
})
files.forEach(function (f) {
- if (fs.statSync(f).isDirectory())
+ try {
+ var s = fs.statSync(f)
+ } catch (er) {
+ return
+ }
+ if (s.isDirectory())
walk(f)
else if (f.match(/\.js$/))
FILES.push(f)