How to integrate Protractor test cases in Atom using Typescript?

后端 未结 3 1665
慢半拍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 16:11

    This didn't quite fix the problem for me. In addition to installing the jasmine types (above answer)

    I had to open tsconfig.json and insure jasmine was in the list of types under compilerOptions. For example { "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "baseUrl": "src", "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowJs": true, "target": "es5", "paths": { "environments": [ "./environments" ] }, "types": [ "node", "jasmine" ], "typeRoots": [ "node_modules/@types" ], "lib": [ "es2016", "dom" ] } } After adding "jasmine" as a type, the errors disappeared in Atom immediately.

提交回复
热议问题