1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 20:40:05 +00:00

chore(*): fix failing tests

This commit is contained in:
Krishna Acondy
2021-01-19 08:16:08 +00:00
parent 75e3fd018d
commit bf35dd072a
2 changed files with 20 additions and 29 deletions

8
src/__mocks__/axios.ts Normal file
View File

@@ -0,0 +1,8 @@
import { AxiosStatic } from 'axios'
const mockAxios = jest.genMockFromModule('axios') as AxiosStatic
// this is the key to fix the axios.create() undefined error!
mockAxios.create = jest.fn(() => mockAxios)
export default mockAxios