From 2a33133cffb74fc85393b3e0647464972116a08b Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Sat, 23 Nov 2024 02:57:15 +0300 Subject: [PATCH] (chore) Remove unused test wrapper helper (#228) Removes an unused renderWithRouter test wrapper helper function. --- .../src/helpers/render-with-router.tsx | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 packages/esm-home-app/src/helpers/render-with-router.tsx diff --git a/packages/esm-home-app/src/helpers/render-with-router.tsx b/packages/esm-home-app/src/helpers/render-with-router.tsx deleted file mode 100644 index dd409f4fa..000000000 --- a/packages/esm-home-app/src/helpers/render-with-router.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react'; -import { MemoryRouter } from 'react-router-dom'; -import { createMemoryHistory } from 'history'; -import { render } from '@testing-library/react'; - -export default function renderWithRouter( - ui, - { route = '/', match = { params: {}, isExact: true, path: '', url: '' } } = {}, -) { - const history = createMemoryHistory({ initialEntries: [route] }); - return { - ...render({ui}), - history, - match, - }; -}