title: How to mock module dependencies in module spec file?
body: <p>I have a module that imports Kendo's IntlModule and the spec file with Jest is throwing an error. </p>
  
  <p>a.module.ts</p>
  
  <pre><code>import { IntlModule } from '@progress/kendo-angular-intl';
  import '@progress/kendo-angular-intl/locales/en-GB/all';
  
  @NgModule({
      import: [ IntlModule ]
  })
  export class AModule { }
  </code></pre>
  
  <p>a.module.spec.ts</p>
  
  <p>This is the default module spec which I currently have:</p>
  
  <pre><code>import { AModule } from './a.module';
  
  describe('AModule', () =&gt; {
    let aModule: AModule;
  
    beforeEach(() =&gt; {
      aModule = new AModule();
    });
  
    it('should create an instance', () =&gt; {
      expect(aModule).toBeTruthy();
    });
  });
  </code></pre>
  
  <p>I get following error:</p>
  
  <pre><code>({"Object.&lt;anonymous&gt;":function(module,exports,require,__dirname,__filename,global,jest){import { setData } from '@progress/kendo-angular-intl';
  
      SyntaxError: Unexpected token {
  
        24 |       }
      &gt; 26 |     }),
           | ^
        27 |     IntlModule
        28 |   ],
        29 |   exports: [
  </code></pre>
  
  <p>How could I mock the IntlModule to make the test pass?</p>