@zohodesk/testinglibrary 0.0.5-exp.6 → 0.0.5-exp.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@ const fileName = 'uat.config.js';
25
25
  * @property {any} browsers: List of browsers
26
26
  * @property {string} openReportOn: default Option value (never, on-failure and always)
27
27
  * @property {any} reportPath : directory where report is generate
28
- * @property {boolean} isCucumberPreprocessingRequired: Feature files needs to be processed
28
+ * @property {boolean} bddMode: Feature files needs to be processed
29
29
  * @property {number} expectTimeout: time in milliseconds which the expect condition should fail
30
30
  * @property {number} testTimeout: time in milliseconds which the test should fail
31
31
  */
@@ -22,7 +22,7 @@ const {
22
22
  isAuthMode,
23
23
  openReportOn,
24
24
  reportPath = _path.default.join(process.cwd(), 'playwright-report'),
25
- isCucumberPreprocessingRequired = false,
25
+ bddMode = false,
26
26
  expectTimeout = 5 * 1000,
27
27
  testTimeout = 60 * 1000
28
28
  } = (0, _readConfigFile.generateConfigFromFile)();
@@ -65,7 +65,7 @@ let projects = browsers.map(browser => {
65
65
  }
66
66
  }).filter(Boolean);
67
67
  const testPath = _path.default.join(_path.default.resolve(process.cwd()), 'uat');
68
- const testDir = isCucumberPreprocessingRequired ? (0, _bddFramework.defineBddConfig)({
68
+ const testDir = bddMode ? (0, _bddFramework.defineBddConfig)({
69
69
  paths: [`${testPath}/**/*.feature`],
70
70
  import: [`${testPath}/**/steps/*.spec.js`],
71
71
  featuresRoot: `${testPath}`,
@@ -20,7 +20,7 @@ function createTestRunner() {
20
20
  const {
21
21
  debug,
22
22
  mode = 'dev',
23
- isCucumberPreprocessingRequired = false
23
+ bddMode = false
24
24
  } = (0, _readConfigFile.generateConfigFromFile)();
25
25
 
26
26
  // Environment variables Initialization
@@ -41,7 +41,7 @@ function createTestRunner() {
41
41
  // Spawn the child process
42
42
 
43
43
  let promises = [];
44
- if (isCucumberPreprocessingRequired) {
44
+ if (bddMode) {
45
45
  const beforeCommand = 'node';
46
46
  const bddGenPath = _path.default.resolve(_path.default.join(__dirname, '../', '../', 'bdd-framework', 'cli', 'index.js'));
47
47
  const beforeArgs = [bddGenPath, '-c', configPath];
@@ -12,7 +12,7 @@
12
12
  * @property {any} browsers: List of browsers
13
13
  * @property {string} openReportOn: default Option value (never, on-failure and always)
14
14
  * @property {any} reportPath : directory where report is generate
15
- * @property {boolean} isCucumberPreprocessingRequired: Feature files needs to be processed
15
+ * @property {boolean} bddMode: Feature files needs to be processed
16
16
  * @property {number} expectTimeout: time in milliseconds which the expect condition should fail
17
17
  * @property {number} testTimeout: time in milliseconds which the test should fail
18
18
  */
package/changelog.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  - Provided Initial Support for cucumber feature files
12
12
  - Playwright-bdd and cucumber
13
- - Added config isCucumberPreprocessingRequired which toggles the feature files processing
13
+ - Added config bddMode which toggles the feature files processing
14
14
  - Internal Library change
15
15
  - Provided support for import/export statements
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.0.5-exp.6",
3
+ "version": "0.0.5-exp.7",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -8,7 +8,8 @@
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "clean": "rm -rf build && mkdir build",
10
10
  "build-babel": "babel -d ./build ./src --copy-files",
11
- "build": "npm run clean && npm run build-babel"
11
+ "build": "npm run clean && npm run build-babel",
12
+ "prepare": "npm run build"
12
13
  },
13
14
  "keywords": [],
14
15
  "author": "",