When running ng test I get the following error on all of my spec tests:
Property 'analytics' does not exist on type 'Window & typeof globalThis'.
This is strange as I did declare the analytics property as instructed?
declare global { interface Window { analytics: any; } }