Skip to content

Commit

Permalink
create a snapshot test (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeva authored Aug 6, 2024
1 parent 094c5d0 commit 94905b9
Show file tree
Hide file tree
Showing 3 changed files with 1,056 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ jobs:
- name: Fix my build
uses: fly-ci/wingman-action@v1
if: failure()
if: failure()
6 changes: 6 additions & 0 deletions __tests__/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<App />);
});

it('should render content correctly', () => {
const appContent = renderer.create(<App />).toJSON();

expect(appContent).toMatchSnapshot();
});
Loading

0 comments on commit 94905b9

Please sign in to comment.