Answers for "CUSTOM_ELEMENTS_SCHEMA error occur while unit testing with jasmine and karma"

0

CUSTOM_ELEMENTS_SCHEMA error occur while unit testing with jasmine and karma

import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './../app.component';
import { RouterTestingModule } from '@angular/router/testing';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

describe('AppComponent', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      schemas: [ CUSTOM_ELEMENTS_SCHEMA ],
      declarations: [AppComponent],
      imports: [RouterTestingModule]
    });
    TestBed.compileComponents();
  });
Posted by: Guest on March-30-2021

Code answers related to "CUSTOM_ELEMENTS_SCHEMA error occur while unit testing with jasmine and karma"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language