我在一个TypeScript项目中使用Angular.js,并使用Jasmine进行测试。当我使用spyOn在对象上模拟一个方法时,Jasmine用一个具有calls属性的函数替换该方法,例如,您可以执行thing.method.calls.count()。问题是TypeScript编译器不知道方法上的calls属性,并给出编译器错误:
property 'calls' does not exist on type '() => IPromise<
在用npm测试在visual代码中运行量角器测试时,出现了跟随错误,似乎是node_modules/@types/jasmine/index.d.ts的问题,如何消除这个错误?C:\MyFiles\NewTechonologies\Protractor\TypeScript\Test>npm test
我安装了node.js、typescript、全局量角器和jasmine。我转到项目文件夹并执行webdriver-manager update。在这里,我将提供我的config.ts和package.json。description": "Automated tests for a game platform","dependencies": {
"@types/<e