From d2aa484b600dc0d122bb994b9bb29504ffe4cf12 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Tue, 3 May 2022 19:47:39 +0200 Subject: build: integration testing support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run integration tests in an electron environment for the main process. Signed-off-by: Kristóf Marussy --- packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packages/main/src/reactions/__tests__') 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'; import type ConfigRepository from '../../infrastructure/config/ConfigRepository'; import SharedStore from '../../stores/SharedStore'; import type Disposer from '../../utils/Disposer'; -import { silenceLogger } from '../../utils/log'; import synchronizeConfig, { serializeConfig } from '../synchronizeConfig'; let store: SharedStore; const repository: ConfigRepository = { - readConfig: jest.fn(), - writeConfig: jest.fn(), - watchConfig: jest.fn(), + readConfig: jest.fn(), + writeConfig: jest.fn(), + watchConfig: jest.fn(), }; const lessThanThrottleMs = 100; const throttleMs = 1000; beforeAll(() => { jest.useFakeTimers(); - silenceLogger(); }); beforeEach(() => { -- cgit v1.2.3-70-g09d2