From 8e72708b4e8d827d76353206a312ebdcc05564b4 Mon Sep 17 00:00:00 2001 From: memeriau Date: Fri, 26 Nov 2021 17:50:56 +0100 Subject: [PATCH] remove default snapshot test --- src/app/__tests__/App.tsx | 42 -------------------- src/app/__tests__/__snapshots__/App.tsx.snap | 33 --------------- 2 files changed, 75 deletions(-) delete mode 100755 src/app/__tests__/App.tsx delete mode 100644 src/app/__tests__/__snapshots__/App.tsx.snap diff --git a/src/app/__tests__/App.tsx b/src/app/__tests__/App.tsx deleted file mode 100755 index 1b5b1fd..0000000 --- a/src/app/__tests__/App.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import renderer from "react-test-renderer" -import { Provider } from "react-redux" -import { MemoryRouter } from "react-router-dom" - -import App from ".." - -describe("", () => { - it("renders", () => { - const mockStore = { - default: () => null, - subscribe: () => null, - dispatch: () => null, - getState: () => ({ home: () => null }), - } - const mockRoute = { - routes: [ - { - path: "/", - exact: true, - component: () => ( -
-

Welcome Home!

-
- ), - }, - ], - } - - const tree = renderer - .create( - // @ts-expect-error - - - - - - ) - .toJSON() - - expect(tree).toMatchSnapshot() - }) -}) diff --git a/src/app/__tests__/__snapshots__/App.tsx.snap b/src/app/__tests__/__snapshots__/App.tsx.snap deleted file mode 100644 index 90c3d5a..0000000 --- a/src/app/__tests__/__snapshots__/App.tsx.snap +++ /dev/null @@ -1,33 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` renders 1`] = ` -
- - Logo -

- - REACT COOL STARTER - -

-
-
-
-

- Welcome Home! -

-
-
-
-`;