Open JunTaoLuo opened 6 days ago
One open question is where should the test utilities (e.g. mocks, helpers) be located? If it is placed in the same directory as the source and unit test files, it becomes a little more difficult to differentiate between source files and test utilities. We need to test this out to ensure the coverage tool recognizes test utilities correctly.
cc @simiadebowale @vbahinwillit
Hey team! Please add your planning poker estimate with Zenhub @cferris32 @jenniemc @JunTaoLuo @ryanshaw @simiadebowale @vbahinwillit
As part of the effort to improve our unit tests, we've decided to move unit tests to the same directory as the source file of the system under testing.
For example:
Primarily, this provides the benefit of making it easier to find the associated test file for each component and to identify which source files is missing associated tests.
Note that naming of the unit tests should:
.unit.spec.js
as specified here.Definition of Done