5.2.0
Update various dependencies, including:
babel-jest ^12.0.0 >> ^15.0.0
eslint ^2.0.0 >> ^3.0.0
eslint-plugin-react ^4.2.3 >> ^6.0.0
jest-cli ^13.0.0 >> ^15.1.0
react ^15.0.0 >> ^15.3.0
react-dom ^15.0.0 >> ^15.3.0
Aside from the dependencies, the default test file extension has been changed from __tests__/index.js
style to *.spec.js
. The primary reason was reduced confusion due to the test file living alongside what it's targetting; it's also harder to accidentally forget the tests exist for a file in general when they're co-located in the same directory. This fits into the organization guidelines set forth in A maintainable front-end project structure (2016).
Before:
/
component-x/
__tests__/
index.js
index.js
component-y/
__tests__/
index.js
index.js
After:
/
component-x/
index.js
index.spec.js
component-y/
index.js
index.spec.js
Thank you for using generator-enigma
!