seedling/source/e2e/cucumber.js

25 lines
553 B
JavaScript
Raw Normal View History

2023-12-28 21:58:08 +00:00
const argv = require('minimist')(process.argv);
const common = [
'src/features/home.feature',
'src/features/*.feature',
'--require-module ts-node/register',
'--require src/steps/**/*.ts',
'-f summary',
'-f json:report/report.json',
'-f @qavajs/html-formatter:report/report.html',
].join(' ');
module.exports = (async function () {
if (argv['p'] === 'ci') {
require('dotenv').config({ path: './config/.ci.env' });
} else {
require('dotenv').config({ path: './config/.local.env' });
}
return {
default: common,
ci: common,
};
})();