Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit a7734f8

Browse files
lennymjuliemr
authored andcommitted
Fix docs for using protractor-cucumber-framework
The code at https://github.com/angular/protractor/blob/master/lib/configParser.js#L167-L181 will convert a frameworkPath of `protractor-cucumber-framework` to a relative path relative to the configuration file. Instead the path must be supplied as an absolute path, and require.resolve is the best method to achieve this. It also makes documentation consistent with https://github.com/mattfritz/protractor-cucumber-framework#implementation
1 parent 0e743aa commit a7734f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/frameworks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ exports.config = {
7878
framework: 'custom',
7979

8080
// path relative to the current config file
81-
frameworkPath: 'protractor-cucumber-framework'
81+
frameworkPath: require.resolve('protractor-cucumber-framework')
8282

8383
// relevant cucumber command line options
8484
cucumberOpts: {

0 commit comments

Comments
 (0)