diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index 534aabaf0..a4025c9ae 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -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 diff --git a/src/containers/Auth/Logout/Logout.test.tsx b/src/containers/Auth/Logout/Logout.test.tsx index 961f428ff..2f9eb7e0f 100644 --- a/src/containers/Auth/Logout/Logout.test.tsx +++ b/src/containers/Auth/Logout/Logout.test.tsx @@ -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('', () => { test('it should logout user', async () => { render(