How to integrate Protractor test cases in Atom using Typescript?

后端 未结 3 1671
慢半拍i
慢半拍i 2020-12-18 15:45

I have installed typescript for atom for writing Protractor Scripts For automation.

My code is written in Jasmine Framework as protractor supports it nicely.

3条回答
  •  情深已故
    2020-12-18 15:56

    Obviously, some of these issues (require and loginPage, for example) aren't necessarily anything to do with Jasmine. However, the issue is that these are global variables and the TS compiler can't find their declaration. The easiest way to remedy this is to declare each one at the top of the file in the following way:

    declare var describe: any;

    This will resolve the issues with describe and it. Other problems, such as require will be because you're not using the module import syntax.

提交回复
热议问题