http - How to integrate nock-vcr-recorder-mocha with Meteor? -
i need mock http calls when testing meteor app using https://github.com/mad-eye/meteor-mocha-web
i found https://github.com/poetic/nock-vcr-recorder-mocha including in app using https://github.com/meteorhacks/npm , following test code gives me error...
vcr = meteor.npmrequire('nock-vcr-recorder-mocha') log "vcr!",vcr describe "interpret data", -> vcr.it "should work", -> chai.expect(-> # http call ).not.to.throw()
w20150327-17:25:33.820(1)? (stderr) typeerror: cannot read property 'test' of undefined w20150327-17:25:33.821(1)? (stderr) @ getcassettename (/users/fredrikbranstrom/sites/kaus/.meteor/local/isopacks/npm-container/npm/node_modules/nock-vcr-recorder-mocha/lib/it.js:30:24) w20150327-17:25:33.821(1)? (stderr) @ /users/fredrikbranstrom/sites/kaus/.meteor/local/isopacks/npm-container/npm/node_modules/n
Comments
Post a Comment