特定于单元测试的子组件不会加载父scss文件,仅加载全局和自身scss文件
有两个组成部分
A.component.html
<header>
</header>
<router-outlet></router-outlet>
A.component.scss
:host ::ng-deep .inpGroup {
display: block;
width: 100%;
height: 50px;
}
B.component.html
<div class="inpGroup">
</div>
在b.component.spec.ts上应用了角度单位测试后, 如何加载正在B组件中使用的A.component.scss。 我尝试过,在子组件规格中加载父组件。