-
Notifications
You must be signed in to change notification settings - Fork 5
Use proxyquire to mock fs object ... #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…get: (node) warning: possible EventEmitter memory leak detected. 11 test listeners added. Use emitter.setMaxListeners() to increase limit. Trace at TestCollection.addListener (events.js:239:17) at Runner.run (/Users/kdodds/Developer/eslint-find-new-rules/node_modules/ava/lib/runner.js:127:13) at process.<anonymous> (/Users/kdodds/Developer/eslint-find-new-rules/node_modules/ava/index.js:90:10) at emitOne (events.js:77:13) at process.emit (events.js:169:7) at process.<anonymous> (/Users/kdodds/Developer/eslint-find-new-rules/node_modules/ava/lib/test-worker.js:124:10) at emitTwo (events.js:87:13) at process.emit (events.js:172:7) at handleMessage (internal/child_process.js:689:10) at Pipe.channel.onread (internal/child_process.js:440:11)
Current coverage is
|
Somehow this causes |
test.todo('test bin later') | ||
|
||
try { | ||
require('./bin') // requiring now for coverage until this is tested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please update your PR to require('../bin')
:-) That'll fix the coverage issue :-) Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Pushes the percentage of covered statements und lines just above the set threshold :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect
Use proxyquire to mock fs object ...
Wanna add yourself to the contributors? https://github.com/kentcdodds/eslint-find-new-rules/blob/master/.all-contributorsrc more info |
I've given you write access to the repo. Please keep doing PRs (and I will too) rather than committing directly to master :-) |
Supersedes #7