avoid wrapping addons when rendering them in a test setting, the levels of nesting is very sensitive due to TechDocsReaderPage.tsx, this will result in a more realistic component tree
Signed-off-by: Morgan Bentell <mbentell@spotify.com>
This commit is contained in:
@@ -236,9 +236,9 @@ export class TechDocsAddonTester {
|
||||
element={<TechDocsReaderPage />}
|
||||
>
|
||||
<TechDocsAddons>
|
||||
{this.addons.map((addon, index) => (
|
||||
<Fragment key={index}>{addon}</Fragment>
|
||||
))}
|
||||
{this.addons.map((addon, index) =>
|
||||
React.cloneElement(addon, { key: index }),
|
||||
)}
|
||||
</TechDocsAddons>
|
||||
</Route>
|
||||
</FlatRoutes>
|
||||
|
||||
Reference in New Issue
Block a user