plugins: fix tests for react router bump

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-08-24 15:48:49 +02:00
parent baa2ec822d
commit 9f1feb5464
6 changed files with 55 additions and 66 deletions
+4 -2
View File
@@ -15,7 +15,7 @@
*/
import React from 'react';
import { Route } from 'react-router';
import { Route, Routes } from 'react-router';
import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
import { todoPlugin, EntityTodoContent } from './plugin';
import { todoApiRef } from './api';
@@ -55,7 +55,9 @@ describe('todo', () => {
metadata: { name: 'Test TODO' },
}}
>
<Route path="/" element={<EntityTodoContent />} />
<Routes>
<Route path="/" element={<EntityTodoContent />} />
</Routes>
</EntityProvider>
</TestApiProvider>,
);