简体   繁体   中英

How to include child component while writing unit test cases in angular2

I have a component which has a child component while writing unit test cases I am getting an error saying child component is not defined. Thanks in advance.

Probably include child component in your parent component and use it in the declaration. Also add below line import { NO_ERRORS_SCHEMA } from '@angular/core';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM