Skip to content
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

Unhandled error with prefer-to-be-null #29

Closed
alexlrobertson opened this issue Dec 4, 2017 · 1 comment
Closed

Unhandled error with prefer-to-be-null #29

alexlrobertson opened this issue Dec 4, 2017 · 1 comment

Comments

@alexlrobertson
Copy link

My linter crashes occasionally when using prefer-to-be-null with an expectation without a value.

Cannot read property 'value' of undefined
TypeError: Cannot read property 'value' of undefined
    at expectToEqualCase (/project/node_modules/eslint-plugin-jest/rules/util.js:40:17)
    at CallExpression (/project/node_modules/eslint-plugin-jest/rules/prefer_to_be_null.js:10:41)
    at listeners.(anonymous function).forEach.listener (/project/node_modules/eslint/lib/util/safe-emitter.js:47:58)
    at Array.forEach (native)
    at Object.emit (/project/node_modules/eslint/lib/util/safe-emitter.js:47:38)
    at NodeEventGenerator.applySelector (/project/node_modules/eslint/lib/util/node-event-generator.js:251:26)
    at NodeEventGenerator.applySelectors (/project/node_modules/eslint/lib/util/node-event-generator.js:280:22)
    at NodeEventGenerator.enterNode (/project/node_modules/eslint/lib/util/node-event-generator.js:294:14)
    at CodePathAnalyzer.enterNode (/project/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:608:23)
    at Traverser.enter (/project/node_modules/eslint/lib/linter.js:956:32)
expect(store.getFilters()).toEqual();
xfumihiro added a commit to xfumihiro/eslint-plugin-jest that referenced this issue Dec 5, 2017
SimenB pushed a commit that referenced this issue Dec 5, 2017
@SimenB SimenB closed this as completed in 7673c54 Dec 5, 2017
@SimenB
Copy link
Member

SimenB commented Dec 5, 2017

Fixed in v21.4.1, thanks for the report!

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

No branches or pull requests

2 participants