angular / protractor-cookbook

Examples for using Protractor in various common scenarios.
MIT License
129 stars 71 forks source link

Including typescript files in specs #38

Closed mailmrmanoj closed 7 years ago

mailmrmanoj commented 7 years ago

Can I include spec files (.ts) in specs section of protractor.conf.ts and run tests directly without compiling them to .js files ?

cnishina commented 7 years ago

Something like? I should probably add these to the typescript example.

  specs: [
    './e2e/**/*-spec.ts'
  ],
  beforeLaunch: function() {
    require('ts-node').register({
      project: 'e2e'
    });
  },
mailmrmanoj commented 7 years ago

Thanks,Got it :-)