-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ScottLogic/simplify-tests
test: simplify tests
- Loading branch information
Showing
6 changed files
with
107 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
// cucumber.js | ||
|
||
// Retrieve the path to feature paths from cl arguments of cucumber-js | ||
const cliArgs = process.argv.slice(2); | ||
const featurePath = cliArgs[cliArgs.length - 2]; | ||
if (!featurePath) { | ||
throw new Error(`You must provide a path to the feature files.`); | ||
} | ||
|
||
let common = [ | ||
featurePath, // Specify our feature files | ||
"--require features/support/*.js", // Load step definitions | ||
].join(" "); | ||
const common = { | ||
paths: ["../openapi-forge/features/*.feature"], | ||
require: ["features/support/*.js"], | ||
publishQuiet: true, | ||
}; | ||
|
||
module.exports = { | ||
default: common, | ||
generators: { | ||
...common, | ||
format: ["message"], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.