Jest and the Component Driven Development (CDD) – Comunidad JS – Medium

#Jest and the Component Driven Development (CDD):  #ReactJS #JavaScript

  • Jest and the Component Driven Development (CDD)Testing React and React Native applications.We all knows about TDD right ?
  • I recently discovered other flow/flavor around React Components and Jest snapshot testing that makes me more happy and encourage me to write more tests.This approach makes the dev process a bit more fun that the other way around.
  • Then, when you´re confortable with your component code base and you have applied all the good practices out there, write the actual test, passing the required props to the component being tested and expect it to match the snapshot.Snapshot testingSnapshot tests are a very useful tool whenever you want to make sure your UI does not change unexpectedly.The above statement, is from the Jest documentation, and it´s 100% true.
  • I’ve found snapshot testing to be a quick and fun way to test Components and make sure your UI does not change unexpectedly, which is a good thing.The test will fail if the two images do not match: either the change is unexpected, or the screenshot needs to be updated to the new version of the UI component.That means we are not passing the expected props to our component in some parts of our application or we have adjusted the component (because we´ve refactored it).
  • So either one or the other possibility, we need to update the test snapshot (If we´ve refactored it) executing in the terminal yarn test -u or go and fix the part in the application where we´re not using the component as we expect.Having a test coverage between 80 and 100% make us more confidents when we need to deploy to any environment and allows applications to be more robust and easy to scale.In closing, I really encourage React developers to use Jest for testing applications.

We all knows about TDD right ? Test Driven Development.
The philosophy behind it, is to start the development cycle with first writing a failing test and then writing the actual function, to make it…
Continue reading “Jest and the Component Driven Development (CDD) – Comunidad JS – Medium”

Reactabular 1.0.0-rc4 out

Awesome #ReactJS project! Reactabular – Spectacular tables

  • Overall, things are coming together really nicely 👍
  • bebraw commented Jul 7, 2016 edited
  • bebraw changed the title from Reactabular 0.15-beta3 out – Feedback welcome!
  • bebraw added the help wanted label Jun 17, 2016
  • bebraw added a commit that referenced this issue Jun 18, 2016

Read the full article, click here.


@ReactiveConf: “Awesome #ReactJS project! Reactabular – Spectacular tables”


reactabular – Spectacular tables for React (MIT)


Reactabular 1.0.0-rc4 out

react-boilerplate/Changelog.md at v3.0.0 · mxstbr/react-boilerplate · GitHub

  • Testing setup : Thanks to @jbinto’s herculean efforts, testing is now a first-class citizen of this boilerplate.
  • No more context switching, no more “Create new file, copy and paste that boilerplate structure, bla bla”: just npm run generate and go.
  • “Smart” containers are now isolated from stateless and/or generic components, tests are now co-located with the code that they validate.
  • Documentation : Thanks to @oliverturner, this boilerplate has some of the best documentation going.
  • New server setup : Thanks to the mighty @grabbou, we now use express.js to give users a production-ready server right out of the box.

Read the full article, click here.


@SitePointJS: “React Boilerplate (RBP) v3.0.0 is out, and it’s a complete rewrite #ReactJS”


react-boilerplate – :fire: A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.


react-boilerplate/Changelog.md at v3.0.0 · mxstbr/react-boilerplate · GitHub