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

Webstorm syntax highlighting/inspection for chains #645

Closed
aleross opened this issue Mar 22, 2016 · 2 comments
Closed

Webstorm syntax highlighting/inspection for chains #645

aleross opened this issue Mar 22, 2016 · 2 comments

Comments

@aleross
Copy link

aleross commented Mar 22, 2016

Webstorm (and probably other IDEs) complains about unresolved variables when using the expect/should method chaining approach, even with node_modules/chai set up as a library. Is there a specific setup others use to suppress these warnings?

@meeber
Copy link
Contributor

meeber commented Apr 29, 2016

Hi @aleross. I don't have any firsthand experience with this issue but I did come across this post. Does that help at all?

It's on Chai's roadmap to support method-style assertions for the should and expect interfaces, which should also alleviate this issue.

You might also want to check out the dirty-chai plugin in the meantime.

Hope this helps!

@aleross
Copy link
Author

aleross commented May 2, 2016

Interesting, I'm pretty sure I tried adding the library to Webstorm and it was still showing up as incomplete. Perhaps not though, thanks for the share.

@aleross aleross closed this as completed May 2, 2016
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