2017-04-13 105 views
0

我想從jasmine切換我的JS單元測試mochachai,但它讓我很煩理念的亮點toUnresolved variable摩卡和柴支持

enter image description here

我也裝庫:

enter image description here

回答

2

chai可鏈式方法在安裝好chai TypeScript後正確解析給我存根(npm install @types/chai):

enter image description here