【发布时间】:2021-03-14 12:30:00
【问题描述】:
我正在尝试使用 jest 编写 Angular 测试:
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [BookListComponent],
}).compileComponents();
}));
当我启动时:
npm run test:watch
我收到了这个错误:
错误 TS2304:C annot find name 'async'。
【问题讨论】:
-
应该是导入的。
标签: angular typescript jestjs