diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6a1904e..fdc4d8a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -69,4 +69,4 @@ jobs: - name: Fix my build uses: fly-ci/wingman-action@v1 - if: failure() \ No newline at end of file + if: failure() diff --git a/__tests__/App.test.tsx b/__tests__/App.test.tsx index ef217ab..7042d6f 100644 --- a/__tests__/App.test.tsx +++ b/__tests__/App.test.tsx @@ -15,3 +15,9 @@ import renderer from 'react-test-renderer'; it('renders correctly', () => { renderer.create(); }); + +it('should render content correctly', () => { + const appContent = renderer.create().toJSON(); + + expect(appContent).toMatchSnapshot(); +}); diff --git a/__tests__/__snapshots__/App.test.tsx.snap b/__tests__/__snapshots__/App.test.tsx.snap new file mode 100644 index 0000000..dc76c68 --- /dev/null +++ b/__tests__/__snapshots__/App.test.tsx.snap @@ -0,0 +1,1049 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should render content correctly 1`] = ` + + + + + + + Welcome to + + + React Native + + + + + + Step One + + + Edit + + App.tsx + + to change this screen and then come back to see your edits. + + + + + See Your Changes + + + + Press + + Cmd + R + + in the simulator to reload your app's code. + + + + + + Debug + + + + Press + + Cmd + D + + in the simulator or + + + Shake + + your device to open the Dev Menu. + + + + + + Learn More + + + Read the docs to discover what to do next: + + + + + + + The Basics + + + Explains a Hello World for React Native. + + + + + + Style + + + Covers how to use the prop named style which controls the visuals. + + + + + + Layout + + + React Native uses flexbox for layout, learn how it works. + + + + + + Components + + + The full list of components and APIs inside React Native. + + + + + + Navigation + + + How to handle moving between screens inside your application. + + + + + + Networking + + + How to use the Fetch API in React Native. + + + + + + Debugging + + + Learn about the tools available to debug and inspect your app. + + + + + + Help + + + Need more help? There are many other React Native developers who may have the answer. + + + + + + Follow us on Twitter + + + Stay in touch with the community, join in on Q&As and more by following React Native on Twitter. + + + + + + + +`;