Fix types in integration spec
This commit is contained in:
parent
3bbc6498fa
commit
f3a08cda2f
|
@ -6,7 +6,7 @@ import { MyWindow } from '~/src/types/global'
|
|||
;((window as any) as MyWindow).ipcRenderer = ipcRenderer
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
detector: jest.fn(() => 'pleroma'),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -66,7 +66,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
detector: jest.fn(() => 'pleroma'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
|
|
|
@ -18,7 +18,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -19,7 +19,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -41,7 +41,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -19,7 +19,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -18,7 +18,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -30,7 +30,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -29,7 +29,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -19,7 +19,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -18,7 +18,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -18,7 +18,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -18,7 +18,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -18,7 +18,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -40,7 +40,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -28,7 +28,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -22,7 +22,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -23,7 +23,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -29,7 +29,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -59,7 +59,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
|
@ -22,7 +22,7 @@ const mockClient = {
|
|||
}
|
||||
|
||||
jest.mock('megalodon', () => ({
|
||||
...jest.requireActual('megalodon'),
|
||||
...jest.requireActual<object>('megalodon'),
|
||||
default: jest.fn(() => mockClient),
|
||||
__esModule: true
|
||||
}))
|
||||
|
|
Loading…
Reference in New Issue