diff --git a/src/testing/internal/profile/Render.tsx b/src/testing/internal/profile/Render.tsx index 0757392b26d..284594c9f51 100644 --- a/src/testing/internal/profile/Render.tsx +++ b/src/testing/internal/profile/Render.tsx @@ -124,7 +124,7 @@ export class RenderInstance implements Render { return (this._domSnapshot = body); } - get withinDOM() { + get withinDOM(): () => SyncScreen { const snapScreen = Object.assign(within(this.domSnapshot), { debug: ( ...[dom = this.domSnapshot, ...rest]: Parameters