Skip to content

Commit

Permalink
feat(test-utils): support testing components using useRect (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Wizard committed Apr 9, 2021
1 parent f6776a2 commit cefed02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis/test-utils/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export function create(definition, context = {}) {
}
return hooked.run(component);
},
updateRectOnNextUpdate() {
hooked.updateRectOnNextRun(component);
},
unmount() {
return hooked.teardown(component);
},
Expand Down

0 comments on commit cefed02

Please sign in to comment.