@zohodesk/testinglibrary 0.1.8-stb-bdd-v1 → 0.1.8-stb-bdd-v2

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.
@@ -1,20 +1,22 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.getFeatureFilePath = getFeatureFilePath;
7
8
  exports.getStepFilePath = getStepFilePath;
8
- var _readConfigFile = require("../../../core/playwright/readConfigFile");
9
+ var _readConfigFile = require("../../core/playwright/readConfigFile");
9
10
  var _getFilePath = require("../../utils/getFilePath");
10
11
  var _stringManipulation = require("../utils/stringManipulation");
12
+ var _path = _interopRequireDefault(require("path"));
11
13
  const {
12
14
  featureFilesFolder,
13
15
  stepDefinitionsFolder
14
16
  } = (0, _readConfigFile.generateConfigFromFile)();
15
17
  function getFeatureFilePath() {
16
- return (0, _stringManipulation.filePathPattern)(path.resolve(process.cwd(), 'uat', 'modules', '**', '**', featureFilesFolder, '**', '**', '**', '**', '**', '*.feature'), _getFilePath.isWindows);
18
+ return (0, _stringManipulation.filePathPattern)(_path.default.resolve(process.cwd(), 'uat', 'modules', '**', '**', featureFilesFolder, '**', '**', '**', '**', '**', '*.feature'), _getFilePath.isWindows);
17
19
  }
18
20
  function getStepFilePath() {
19
- return (0, _stringManipulation.filePathPattern)(path.resolve(process.cwd(), 'uat', 'modules', '**', '**', stepDefinitionsFolder, '**', '**', '**', '**', '**', '*.spec.js'), _getFilePath.isWindows);
21
+ return (0, _stringManipulation.filePathPattern)(_path.default.resolve(process.cwd(), 'uat', 'modules', '**', '**', stepDefinitionsFolder, '**', '**', '**', '**', '**', '*.spec.js'), _getFilePath.isWindows);
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.1.8-stb-bdd-v1",
3
+ "version": "0.1.8-stb-bdd-v2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {