File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33const { Parser } = require ( "gherkin" ) ;
44const glob = require ( "glob" ) ;
5- const path = require ( "path" ) ;
65const fs = require ( "fs" ) ;
76const { execFileSync } = require ( "child_process" ) ;
87
@@ -41,7 +40,7 @@ let usingCypressConf = true;
4140try {
4241 // TODO : curently we don't allow the override of the cypress.json path
4342 // maybe we can set this path in the plugin conf (package.json : "cypressConf": "test/cypress.json")
44- const cypressConf = JSON . parse ( fs . readFileSync ( path . resolve ( " cypress.json") ) ) ;
43+ const cypressConf = require ( "../../ cypress.json") ;
4544 const integrationFolder =
4645 cypressConf && cypressConf . integrationFolder
4746 ? cypressConf . integrationFolder . replace ( / \/ $ / , "" )
5655 ? cypressConf . testFiles . split ( "," )
5756 : cypressConf . testFiles ;
5857 testFiles = testFiles . map ( pattern => `${ integrationFolder } /${ pattern } ` ) ;
59- defaultGlob = `{${ testFiles . join ( "," ) } }` ;
58+ defaultGlob =
59+ testFiles . length > 1 ? `{${ testFiles . join ( "," ) } }` : testFiles [ 0 ] ;
6060 } else {
6161 defaultGlob = `${ integrationFolder } /**/*.feature` ;
6262 }
You can’t perform that action at this time.
0 commit comments