diff options
author | isaacs <i@izs.me> | 2014-05-22 02:19:01 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2014-05-22 02:19:01 +0400 |
commit | e16cdb5c06ffa07f851a4eae0c87cda5b5aa7c13 (patch) | |
tree | 556f771b85c972441688bc6252865bc5f8a3c7c6 /test | |
parent | 413c579197309cd3e21be00463a8f6fc7db010a1 (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.js | 7 |
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) |