Skip to content

Commit

Permalink
upload test result
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin-xin committed Feb 22, 2024
1 parent 0790cd9 commit 2684272
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/depolyment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
run: npm ci
- name: Run tests
run: npm test
- name: upload test report
uses: actions/upload-artifact@v3
with:
name: test-report
path: test.json
- name: build website
run: npm run build
- name: publish output
Expand Down
2 changes: 1 addition & 1 deletion src/components/MainContent.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ describe('MainContent', () => {

const button = screen.getByRole('button');
await userEvent.click(button);
expect(screen.getByTestId('help-area')).toBeInTheDocument();
expect(screen.getByTestId('help-area')).not.toBeInTheDocument();
});
});

0 comments on commit 2684272

Please sign in to comment.