Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

truffle test error when empty folder in test folder #2419

Closed
eggplantzzz opened this issue Sep 25, 2019 · 3 comments
Closed

truffle test error when empty folder in test folder #2419

eggplantzzz opened this issue Sep 25, 2019 · 3 comments

Comments

@eggplantzzz
Copy link
Contributor

When running truffle test, if an empty folder exists in the test directory it will fail with

TypeError: Cannot read property 'files' of undefined
    at subloop (/Users/tyler/.nvm/versions/node/v8.16.0/lib/node_modules/truffle/build/webpack:/~/node-dir/lib/paths.js:92:1)
    at /Users/tyler/.nvm/versions/node/v8.16.0/lib/node_modules/truffle/build/webpack:/~/node-dir/lib/paths.js:107:1
    at onDirRead (/Users/tyler/.nvm/versions/node/v8.16.0/lib/node_modules/truffle/build/webpack:/~/node-dir/lib/path
.......
........
@eggplantzzz
Copy link
Contributor Author

It turns out this issue is related to the node-dir library and unfortunately it has not been published for the last 2 years.

fshost/node-dir#53

@gnidan
Copy link
Contributor

gnidan commented Sep 26, 2019

good find!

@eggplantzzz
Copy link
Contributor Author

This issue was resolved with the release of v5.0.40. #2420

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants