@zohodesk/testinglibrary 0.1.0 → 0.1.1

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.
package/Changelog.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Framework that abstracts the configuration for playwright and Jest
4
4
 
5
+ # 0.1.1
6
+
7
+ - Fixed post install script error
8
+ - Fixed error `@cucumber/gherkin` not found. Cause of this issue is updating @cucumber/cucumber to 9.5.0. Reverting this version to 9.2.0
9
+ - Removed testing library exports
10
+
5
11
  # 0.1.0
6
12
 
7
13
  - Removed eslint as dev dependencies as it causes `npm aliases not supported error` for npm version < 6
package/build/index.js CHANGED
@@ -16,18 +16,6 @@ Object.defineProperty(exports, "expect", {
16
16
  return _index.expect;
17
17
  }
18
18
  });
19
- Object.defineProperty(exports, "fireEvent", {
20
- enumerable: true,
21
- get: function () {
22
- return _react.fireEvent;
23
- }
24
- });
25
- Object.defineProperty(exports, "render", {
26
- enumerable: true,
27
- get: function () {
28
- return _react.render;
29
- }
30
- });
31
19
  Object.defineProperty(exports, "test", {
32
20
  enumerable: true,
33
21
  get: function () {
@@ -35,7 +23,6 @@ Object.defineProperty(exports, "test", {
35
23
  }
36
24
  });
37
25
  var _index = require("./core/playwright/index");
38
- var _react = require("@testing-library/react");
39
26
  // const { expect, test, createBdd } = require('./core/playwright/index');
40
27
  // const { fireEvent, render } = require('@testing-library/react');
41
28
 
@@ -47,6 +34,8 @@ var _react = require("@testing-library/react");
47
34
  // createBdd
48
35
  // }
49
36
 
37
+ // import { fireEvent, render } from '@testing-library/react';
38
+
50
39
  const {
51
40
  Given,
52
41
  Then,
@@ -4,8 +4,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  var _path = _interopRequireDefault(require("path"));
5
5
  var _child_process = require("child_process");
6
6
  var _logger = require("../utils/logger");
7
- var _getFilePath = _interopRequireDefault(require("../utils/getFilePath"));
8
- const playwrightPath = _path.default.resolve('node_modules', '.bin', (0, _getFilePath.default)('playwright'));
7
+ var _rootPath = require("../utils/rootPath");
8
+ const playwrightPath = _path.default.resolve((0, _rootPath.getExecutableBinaryPath)('playwright'));
9
9
  const command = playwrightPath;
10
10
  const args = ['install'];
11
11
  _logger.Logger.log(_logger.Logger.INFO_TYPE, 'Downloading browsers for running tests');