Improve unit test coverage on details-fields component
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
As part of https://github.com/ioet/time-tracker-ui/issues/424 a new parameter was added to the details-field-component,
and now [these couple of tests are failing](https://github.com/ioet/time-tracker-ui/blob/master/src/app/modules/shared/components/details-fields/details-fields.component.spec.ts#L298). A solution to this error might be to generate a Test Wrapper Component. More details here:
https://medium.com/better-programming/testing-angular-components-with-input-3bd6c07cfaf6
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with src/app/modules/shared/components/details-fields/details-fields.component.spec.ts around line 298 and run the affected unit tests to reproduce the failures caused by the new parameter. Review the details-fields component tests and the linked Test Wrapper Component guidance, then update the tests so the parameter is covered and the failing tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100