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

TDD / BDD based setup in the slingshot ? #419

Closed
Technologeek opened this issue Apr 11, 2017 · 5 comments
Closed

TDD / BDD based setup in the slingshot ? #419

Technologeek opened this issue Apr 11, 2017 · 5 comments

Comments

@Technologeek
Copy link

Technologeek commented Apr 11, 2017

Not sure if the issue has been raised before but I'd like to know if the slingshot can be improved to integrate any TDD/BDD based development tools like Mocha /Chai ? I can still somehow manage to get the set-up run manually but would be nicer if this boiler plate came inbuilt with an option to integrate them.

Thank you!

@RoM4iK
Copy link
Contributor

RoM4iK commented Apr 11, 2017

I think Jest is good enough to write both TDD and BDD tests.

@coryhouse
Copy link
Owner

Agreed with @RoM4iK. What feature is missing from Jest that you enjoy with Mocha?

@Technologeek
Copy link
Author

Thanks for your response.Initially,I thought Jest was the correct choice for React apps but after reading this reddit post,seems like developers are more conformable with using mocha.

@coryhouse
Copy link
Owner

That post is from a year ago. Facebook gave Jest a full-time team about that time and it has radically improved since then. My question about what you can do in Mocha/Jasmine that Jest can't do stands.

I'll say this: Jest has snapshot testing, which neither Jasmine nor Mocha support. It also has mocking and assertions built-in, unlike Mocha.

@kwelch
Copy link
Collaborator

kwelch commented Apr 11, 2017

I asked a question about why jest during the migration. Not sure how much help it will be but here is a link to the comment.

#262 (comment)

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

4 participants