From 1500c91f36da96226af1226c10bdd83c55c92c23 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 20 Dec 2022 15:27:44 -0300 Subject: [PATCH] context is optional --- packages/web-util/src/tests/hook.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/web-util/src/tests/hook.ts b/packages/web-util/src/tests/hook.ts index a4938f3f9..0ec47f252 100644 --- a/packages/web-util/src/tests/hook.ts +++ b/packages/web-util/src/tests/hook.ts @@ -80,7 +80,7 @@ const isNode = typeof window === "undefined"; export function renderNodeOrBrowser( Component: any, args: any, - Context: any, + Context?: any, ): void { const vdom = !Context ? create(Component, args) @@ -91,7 +91,6 @@ export function renderNodeOrBrowser( if (!isNode) { document.body.appendChild(parentElement); } - // renderIntoDom works also in nodejs // if the VirtualDOM is composed only by functional components // then no called is going to be made to the DOM api.