我的代码在这里,
// app.component.ts
public TestFairy: TestFairy;
platform.ready().then(() => {
TestFairy.begin(APP TOKEN);
...
});
它通过TestDairy的错误
尝试这个
// app.componenet.ts
/// <reference path="../plugins/com.testfairy.cordova-plugin/www/testfairy.d.ts" />
在导入之后,添加以下行以导入 TestFairy
declare var TestFairy: TestFairy;
构造函数内部
platform.ready().then(() => {
TestFairy.begin(APP TOKEN);
...
});
请参考此链接:https ://docs.testfairy.com/Integrations/Cordova.html