Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

override protractorMainPath #163

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

marneborn
Copy link

I would like to always use the protractor that I have installed, instead of the one that comes with this task.
I noticed because I'm testing protractor 4.0, and grunt-protractor-runner uses "^3.2.0".

I know that I could rm -rf node_modules/grunt-protractor-runner/node_modules/protractor.
But counting everyone doing that on every new install isn't a great idea.

Instead I would like to push a pointer to protractor through the options.
Something like this:

grunt.initConfig({
  protractor: {
    options: {
      protractorMainPath: require.resolve('protractor')
    }
  }
});

What do you think?

@stramel stramel mentioned this pull request Jul 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant