title: Can't resolve all parameters for ApplicationModule: (?) using Jest
body: <p>I am trying to run my tests and I get this error while testing nx(mono-repo) angular test using Jest</p>
  <pre><code>Can't resolve all parameters for ApplicationModule: (?).
  
        at syntaxError (../packages/compiler/src/util.ts:100:17)
        at CompileMetadataResolver._getDependenciesMetadata ......  
  </code></pre>
  <p><strong>login-form.componenet.spec.ts</strong></p>
  <pre class="lang-js prettyprint-override"><code>import { LoginFormComponent } from './login-form.component';
  import { ComponentFixture, async, TestBed } from '@angular/core/testing';
  import { FormBuilder, ReactiveFormsModule, FormsModule } from '@angular/forms';
  import { CommonModule } from '@angular/common';
  
  import {
    BrowserDynamicTestingModule,
    platformBrowserDynamicTesting
  } from '@angular/platform-browser-dynamic/testing';
  
  describe('Testing LoginForm', () =&gt; {
    let component: LoginFormComponent;
    let fixture: ComponentFixture&lt;LoginFormComponent&gt;;
  
    // create new instance of FormBuilder
    const formBuilder: FormBuilder = new FormBuilder();
  
    beforeEach(() =&gt; {
  
      TestBed.configureTestingModule({
        declarations: [LoginFormComponent],
        imports: [FormsModule, ReactiveFormsModule, CommonModule],
        providers: [{ provide: FormBuilder, useValue: formBuilder }]
      });
  
      fixture = TestBed.createComponent(LoginFormComponent);
      component = fixture.componentInstance;
    });
  
    test('should be created', () =&gt; {
      expect(component).toBeTruthy();
    });
  });
  </code></pre>
  <p><strong>test.setup.ts</strong></p>
  <pre class="lang-js prettyprint-override"><code>import 'jest-preset-angular';
  </code></pre>
  <p><strong>jest.config.ts</strong></p>
  <pre class="lang-js prettyprint-override"><code>module.exports = {
    testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
    transform: {
      '^.+\\.(ts|js|html)$': 'ts-jest'
    },
    resolver: '@nrwl/jest/plugins/resolver',
    moduleFileExtensions: ['ts', 'js', 'html'],
    coverageReporters: ['html'],
    moduleNameMapper: {
      '@neural/(.*)': '&lt;rootDir&gt;/libs/$1/src/index.ts',    
    }
  };
  </code></pre>
  <p><strong>Versions</strong></p>
  <pre class="lang-js prettyprint-override"><code>Angular: 8.2.14
  jest: 26.0.1
  nrwl: 8.8.2
  jest-preset-angular: 7.1.1
  </code></pre>
  <p>constructor parameters of Login-form
  <strong>Login-form.component.ts</strong></p>
  <pre class="lang-js prettyprint-override"><code>constructor(private fb: FormBuilder) {
      this.loginForm = this.fb.group({
        email: ['', Validators.compose([Validators.required, Validators.email])],
        password: ['', Validators.compose([Validators.required])]
      });
    }
  </code></pre>
  <p>Let me know if you need more information to figure out where is the problem.</p>