Skip to content

Instantly share code, notes, and snippets.

@gashcrumb
Created April 17, 2020 17:00
Show Gist options
  • Save gashcrumb/7ab962a1689a8c3c0fac9aa791fe5bae to your computer and use it in GitHub Desktop.
Save gashcrumb/7ab962a1689a8c3c0fac9aa791fe5bae to your computer and use it in GitHub Desktop.
diff output
diff --git a/app/ui-react/syndesis/src/app/App.test.tsx b/app/ui-react/syndesis/src/app/App.test.tsx
index 301f84f27e..9fca935a80 100644
--- a/app/ui-react/syndesis/src/app/App.test.tsx
+++ b/app/ui-react/syndesis/src/app/App.test.tsx
@@ -1,7 +1,7 @@
import { render, waitForElement } from '@testing-library/react';
import * as React from 'react';
import { MemoryRouter } from 'react-router';
-import { App } from './App';
+// import { App } from './App';
import i18n from 'i18next';
import { I18nextProvider, initReactI18next } from 'react-i18next';
@@ -18,6 +18,7 @@ jest.unmock('./App');
jest.mock('./WithConfig');
export default describe('App', () => {
+ /*
const TestRoute = () => (
<div data-testid="test-route-container">it renders</div>
);
@@ -25,10 +26,12 @@ export default describe('App', () => {
const UnmatchedRoute = () => (
<div data-testid="test-unmatched-route-container">it DOESN'T renders</div>
);
+ */
const testComponent = (
<MemoryRouter initialEntries={['/some-test-url']} initialIndex={1}>
<I18nextProvider i18n={i18n}>
+ {/*
<App
routes={[
{
@@ -45,11 +48,12 @@ export default describe('App', () => {
},
]}
/>
+ */}
</I18nextProvider>
</MemoryRouter>
);
- it('Should render', async () => {
+ xit('Should render', async () => {
const { getByText, getByTestId, queryByTestId } = render(testComponent);
expect(getByText('Test route')).toBeTruthy();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment