Example #1
0
    afterEach(() => {
        testBedApi._activeFixtures.forEach((fixture: ComponentFixture<any>) => fixture.destroy());
        testBedApi._instantiated = false;

        // Remove all ipc listeners because memory leaks happens if we keep it.
        // Note that it's not clean and it does not match the subject of this function.
        // But I dit this things because it could solve the problem effectively.
        ipcRenderer.removeAllListeners('git');
        ipcRenderer.removeAllListeners('workspace');
        ipcRenderer.removeAllListeners('menu');
    });