Fix types in integration spec

This commit is contained in:
AkiraFukushima 2020-09-13 17:24:36 +09:00
parent 3bbc6498fa
commit f3a08cda2f
21 changed files with 21 additions and 21 deletions

View File

@ -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
}))

View File

@ -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

View File

@ -18,7 +18,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -19,7 +19,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -41,7 +41,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -19,7 +19,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -18,7 +18,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -30,7 +30,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -29,7 +29,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -19,7 +19,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -18,7 +18,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -18,7 +18,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -18,7 +18,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -18,7 +18,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -40,7 +40,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -28,7 +28,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -22,7 +22,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -23,7 +23,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -29,7 +29,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -59,7 +59,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))

View File

@ -22,7 +22,7 @@ const mockClient = {
}
jest.mock('megalodon', () => ({
...jest.requireActual('megalodon'),
...jest.requireActual<object>('megalodon'),
default: jest.fn(() => mockClient),
__esModule: true
}))