-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32880ce
commit 63f6e12
Showing
5 changed files
with
1,341 additions
and
1,195 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
// 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-module ts-node/register", // Load TypeScript module | ||
"--require features/support/*.ts", // Load step definitions | ||
].join(" "); | ||
const common = { | ||
paths: ["../openapi-forge/features/*.feature"], | ||
require: ["features/support/*.ts"], | ||
requireModule: ["ts-node/register"], | ||
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
Oops, something went wrong.