1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.SUPPORTED_FILE_EXTENSIONS = exports.SUPPORTED_HOOKS = exports.DEFAULT_CONFIGS = void 0;
|
4 | const DEFAULT_TIMEOUT = 10000;
|
5 |
|
6 | const DEFAULT_CONFIGS = () => ({
|
7 | specs: [],
|
8 | suites: {},
|
9 | exclude: [],
|
10 | outputDir: undefined,
|
11 | logLevel: 'info',
|
12 | logLevels: {},
|
13 | excludeDriverLogs: [],
|
14 | bail: 0,
|
15 | waitforInterval: 500,
|
16 | waitforTimeout: 5000,
|
17 | framework: 'mocha',
|
18 | reporters: [],
|
19 | services: [],
|
20 | maxInstances: 100,
|
21 | maxInstancesPerCapability: 100,
|
22 | filesToWatch: [],
|
23 | connectionRetryTimeout: 120000,
|
24 | connectionRetryCount: 3,
|
25 | execArgv: [],
|
26 | runnerEnv: {},
|
27 | runner: 'local',
|
28 | specFileRetries: 0,
|
29 | specFileRetriesDelay: 0,
|
30 | specFileRetriesDeferred: false,
|
31 | reporterSyncInterval: 100,
|
32 | reporterSyncTimeout: 5000,
|
33 | cucumberFeaturesWithLineNumbers: [],
|
34 | autoCompileOpts: {
|
35 | autoCompile: true,
|
36 | tsNodeOpts: {
|
37 | transpileOnly: true
|
38 | },
|
39 | babelOpts: {}
|
40 | },
|
41 | |
42 |
|
43 |
|
44 | mochaOpts: {
|
45 | timeout: DEFAULT_TIMEOUT
|
46 | },
|
47 | jasmineOpts: {
|
48 | defaultTimeoutInterval: DEFAULT_TIMEOUT
|
49 | },
|
50 | cucumberOpts: {
|
51 | timeout: DEFAULT_TIMEOUT
|
52 | },
|
53 | |
54 |
|
55 |
|
56 | onPrepare: [],
|
57 | onWorkerStart: [],
|
58 | before: [],
|
59 | beforeSession: [],
|
60 | beforeSuite: [],
|
61 | beforeHook: [],
|
62 | beforeTest: [],
|
63 | beforeCommand: [],
|
64 | afterCommand: [],
|
65 | afterTest: [],
|
66 | afterHook: [],
|
67 | afterSuite: [],
|
68 | afterSession: [],
|
69 | after: [],
|
70 | onComplete: [],
|
71 | onReload: [],
|
72 | |
73 |
|
74 |
|
75 | beforeFeature: [],
|
76 | beforeScenario: [],
|
77 | beforeStep: [],
|
78 | afterStep: [],
|
79 | afterScenario: [],
|
80 | afterFeature: []
|
81 | });
|
82 | exports.DEFAULT_CONFIGS = DEFAULT_CONFIGS;
|
83 | exports.SUPPORTED_HOOKS = [
|
84 | 'before', 'beforeSession', 'beforeSuite', 'beforeHook', 'beforeTest', 'beforeCommand',
|
85 | 'afterCommand', 'afterTest', 'afterHook', 'afterSuite', 'afterSession', 'after',
|
86 |
|
87 | 'beforeFeature', 'beforeScenario', 'beforeStep', 'afterStep', 'afterScenario', 'afterFeature',
|
88 | 'onReload', 'onPrepare', 'onWorkerStart', 'onComplete'
|
89 | ];
|
90 | exports.SUPPORTED_FILE_EXTENSIONS = [
|
91 | '.js', '.mjs', '.es6', '.ts', '.feature', '.coffee', '.cjs'
|
92 | ];
|