import 'zone.js/dist/zone-testing' ; import { getTestBed } from '@angular/core/testing' ; import { BrowserDynamicTestingModule , platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing' ; declare const require ; getTestBed ( ) . initTestEnvironment ( BrowserDynamicTestingModule , platformBrowserDynamicTesting ( ) ) ; const context = require . context ( './' , true , /\.spec\.ts$/ ) ; context . keys ( ) . map ( context ) ; const nw = 'nw' ; const nwMock = { process : { versions : { nw : '0.44.4' , 'nw-flavor' : 'sdk' , node : '13.10.1' , chromium : '80.0.3987.132' } } , Shell : { openExternal : function ( ) { return undefined ; } } , Window : { get : function ( ) { return { showDevTools : function ( ) { return undefined ; } } ; } } } ; global [ nw ] = nwMock ; window [ nw ] = nwMock ;