diff options
Diffstat (limited to 'packages/main/src/reactions/__tests__')
-rw-r--r-- | packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts b/packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts index d3338d0..403a608 100644 --- a/packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts +++ b/packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts | |||
@@ -24,21 +24,19 @@ import { mocked } from 'jest-mock'; | |||
24 | import type ConfigRepository from '../../infrastructure/config/ConfigRepository'; | 24 | import type ConfigRepository from '../../infrastructure/config/ConfigRepository'; |
25 | import SharedStore from '../../stores/SharedStore'; | 25 | import SharedStore from '../../stores/SharedStore'; |
26 | import type Disposer from '../../utils/Disposer'; | 26 | import type Disposer from '../../utils/Disposer'; |
27 | import { silenceLogger } from '../../utils/log'; | ||
28 | import synchronizeConfig, { serializeConfig } from '../synchronizeConfig'; | 27 | import synchronizeConfig, { serializeConfig } from '../synchronizeConfig'; |
29 | 28 | ||
30 | let store: SharedStore; | 29 | let store: SharedStore; |
31 | const repository: ConfigRepository = { | 30 | const repository: ConfigRepository = { |
32 | readConfig: jest.fn(), | 31 | readConfig: jest.fn<ConfigRepository['readConfig']>(), |
33 | writeConfig: jest.fn(), | 32 | writeConfig: jest.fn<ConfigRepository['writeConfig']>(), |
34 | watchConfig: jest.fn(), | 33 | watchConfig: jest.fn<ConfigRepository['watchConfig']>(), |
35 | }; | 34 | }; |
36 | const lessThanThrottleMs = 100; | 35 | const lessThanThrottleMs = 100; |
37 | const throttleMs = 1000; | 36 | const throttleMs = 1000; |
38 | 37 | ||
39 | beforeAll(() => { | 38 | beforeAll(() => { |
40 | jest.useFakeTimers(); | 39 | jest.useFakeTimers(); |
41 | silenceLogger(); | ||
42 | }); | 40 | }); |
43 | 41 | ||
44 | beforeEach(() => { | 42 | beforeEach(() => { |