title: No provider for MatSnackBar error when trying to run "ng test"
body: <p>So I'm trying to run "ng test" on my Angular 4 Angular CLI. I'm having many problems such as the UI not loading any helpful message if a test fails, but fortunately the console works. Anyways, this error is occuring saying I did not give MatSnackBar a provider in the spec, but when I do, I get a different error.</p>
  
  <pre><code>Chrome 66.0.3359 (Linux 0.0.0) BranchNameCellComponent should create FAILED
      Error: No provider for MatSnackBar!
  </code></pre>
  
  <p>Error when I include MatSnackBar as an import</p>
  
  <pre><code>Chrome 66.0.3359 (Linux 0.0.0) BranchNameCellComponent should create FAILED
      Failed: Unexpected value 'MatSnackBar' imported by the module 'DynamicTestModule'. Please add a @NgModule annotation.
  </code></pre>
  
  <p>In my component code, I'm importing MatSnackBar and calling it in the constructor. It works fine.</p>
  
  <pre><code>import { MatSnackBar } from '@angular/material';
  ....
  constructor(private httpClient: HttpClient, private fb: FormBuilder, public snackBar: MatSnackBar) { }
  </code></pre>
  
  <p>But in the spec, I try this to no avail.</p>
  
  <pre><code>import { MatSnackBar } from '@angular/material';
  ....
  describe('BranchNameCellComponent', () =&gt; {
    let component: BranchNameCellComponent;
    let fixture: ComponentFixture&lt;BranchNameCellComponent&gt;;
  
    beforeEach(async(() =&gt; {
      TestBed.configureTestingModule({
        declarations: [ BranchNameCellComponent ],
        imports: [ HttpClientTestingModule, ReactiveFormsModule, MatSnackBar ],
        schemas: [ NO_ERRORS_SCHEMA ]
      })
      .compileComponents();
    }));
  
    it('should create', () =&gt; {
      fixture = TestBed.createComponent(BranchNameCellComponent);
      component = fixture.componentInstance;
      expect(component).toBeTruthy();
    });
  });
  </code></pre>
  
  <p>After importing the module like Diego suggested, I now get a timeout error on that same test</p>
  
  <pre><code>08 06 2018 16:14:52.839:WARN [Chrome 66.0.3359 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
  Chrome 66.0.3359 (Linux 0.0.0) ERROR
  Chrome 66.0.3359 (Linux 0.0.0) ERROR
    Disconnected, because no message in 10000 ms.
  Chrome 66.0.3359 (Linux 0.0.0): Executed 16 of 56 DISCONNECTED (11.204 secs / 1.241 secs)
  Chrome 66.0.3359 (Linux 0.0.0) ERROR
  Chrome 66.0.3359 (Linux 0.0.0): Executed 16 of 56 DISCONNECTED (11.204 secs / 1.241 secs)
  </code></pre>