Skip to content

Commit

Permalink
Merge pull request #1782 from glific/fix/node-16
Browse files Browse the repository at this point in the history
Fixed unit test issue on node 16
  • Loading branch information
mdshamoon authored Dec 15, 2021
2 parents 6521b74 + 5069687 commit bfe7de4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install Dependencies
run: yarn install
Expand Down
8 changes: 8 additions & 0 deletions src/containers/Auth/Logout/Logout.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ import { MemoryRouter } from 'react-router';
import { Logout } from './Logout';
import { MockedProvider } from '@apollo/client/testing';

jest.mock('axios', () => {
return {
defaults: { headers: { common: {} } },
get: jest.fn(),
delete: jest.fn(),
};
});

describe('<Logout />', () => {
test('it should logout user', async () => {
render(
Expand Down

0 comments on commit bfe7de4

Please sign in to comment.