-
Notifications
You must be signed in to change notification settings - Fork 664
Closed
Labels
Description
What problem does this feature solve?
The test author is currently not able to remove the lifecycle-hook implementation from components. The hooks are:
- beforeCreate
- created
- beforeMount
- mounted
- beforeUpdate
- updated
- beforeDestroy
- destroyed
- activated
- deactivated
What does the proposed API look like?
The Mock Object in the options
object can be used:
mount(TestedComponent, {
mocks: {
mounted() {
console.log('This is the mocked mounted hook!')
}
}
})
JYC-99, Sergeon, sweatC, DanielOrmeno, johnsudaar and 3 more