aurelia / aurelia/documentation
Testing Components > Manually handling lifecycle is not complete
- Dominant language
- No language data
- Stars
- 104
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Description
**I'm submitting a bug report**
https://aurelia.io/docs/testing/components#manually-handling-lifecycle
**Current behavior:**
The example for `it('can manually handle lifecycle'` is pasted within the `my-component.spec.js` file, but that component only has a `.firstName` in the view and not a `.name`, and the model has no lifecycle hooks that might rebind properties to append the lifecycle name into the view.
**Expected/desired behavior:**
I think this section needs to be rewritten and include the View/ViewModel specific for this example.
Contributor guide
Research direction
Start with the manually handling lifecycle section at the linked Aurelia testing documentation page and compare its example with my-component.spec.js. Check the component view and model used by the example; the work is done when the section includes the matching View and ViewModel and its lifecycle behavior is coherent and runnable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100