Skip to content

Commit

Permalink
fix: add comment about wrapped components
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlet committed Sep 29, 2024
1 parent a5881f6 commit 1d673b4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ async function render(ui: JSXOutput, options: Options = {}): Promise<Result> {
);
}

// Wrap the component under test if a wrapper is provided
const wrappedUi = !Wrapper ? ui : <Wrapper children={ui} />;

const { cleanup } = await qwik.render(container, wrappedUi, { serverData });
Expand Down

0 comments on commit 1d673b4

Please sign in to comment.