node-file-utils icon indicating copy to clipboard operation
node-file-utils copied to clipboard

How do you run the tests?

Open arnorhs opened this issue 12 years ago • 1 comments

I have no idea, and maybe I'm a node-n00b, but the only thing i could think of trying was:

node test/file_spec.js

Which resulted in a module missing .. something called minitest which was not listed as a dependency and I can't see it in the source folders:

$ node tests/file_spec.js 

module.js:340
    throw err;
          ^
Error: Cannot find module '../vendor/minitest.js/minitest'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/home/arnorhs/projects/node-file-utils/tests/file_spec.js:3:16)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)

What am I missing?

arnorhs avatar May 01 '13 08:05 arnorhs

I don't think you're missing anything. It looks like it used to bundle minitest with itself (and when I moved it over into its own repository I just had it already on my path). Re: your request to move to Mocha I think that's probably the right answer.

aconbere avatar May 01 '13 13:05 aconbere