-
Notifications
You must be signed in to change notification settings - Fork 1
/
cucumber.js
33 lines (28 loc) · 1.06 KB
/
cucumber.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('dotenv').config();
const IS_DEV = process.env.NODE_ENV === 'development';
const FAIL_FAST = IS_DEV ? ['--fail-fast'] : [];
const FORMAT =
process.env.CI || !process.stdout.isTTY
? 'progress'
: './node_modules/@cucumber/pretty-formatter';
const FORMAT_OPTIONS = JSON.stringify({ colorsEnabled: true });
//'--parallel 2',
module.exports = {
default: [
...FAIL_FAST,
`--format ${FORMAT}`,
`--format-options ${FORMAT_OPTIONS}`,
`--require-module ${process.cwd()}/ts-node.js`,
'--require-module jsdom-global/register',
'--require-module @babel/register',
'--require-module expect',
//'--require-module babel-plugin-module-resolver',
//'--require-module mutationobserver-shim',
// Test
'--require ./features/StepDefinitions/*/*.js',
'--require ./features/StepDefinitions/*.js',
'--require ./features/StepDefinitions/**/*.js',
'--require ./features/Support/*.js',
].join(' ')
};