@zohodesk/testinglibrary 0.1.0-exp.6 → 0.1.0

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,30 +2,6 @@
2
2
 
3
3
  ## Framework that abstracts the configuration for playwright and Jest
4
4
 
5
- # 0.1.0-exp.6
6
-
7
- - Removed testing library exports
8
-
9
- # 0.1.0-exp.5
10
-
11
- - playwright bersion change conflict
12
-
13
- # 0.1.0-exp.4
14
-
15
- - Playwright version error
16
-
17
- # 0.1.0-exp.3
18
-
19
- - 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
20
-
21
- # 0.1.0-exp.2
22
-
23
- - Fixed post install script error
24
-
25
- # 0.1.0-exp.1
26
-
27
- - Package dependecies update. Playwright version update
28
-
29
5
  # 0.1.0
30
6
 
31
7
  - Removed eslint as dev dependencies as it causes `npm aliases not supported error` for npm version < 6
package/build/index.js CHANGED
@@ -16,6 +16,18 @@ 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
+ });
19
31
  Object.defineProperty(exports, "test", {
20
32
  enumerable: true,
21
33
  get: function () {
@@ -23,6 +35,7 @@ Object.defineProperty(exports, "test", {
23
35
  }
24
36
  });
25
37
  var _index = require("./core/playwright/index");
38
+ var _react = require("@testing-library/react");
26
39
  // const { expect, test, createBdd } = require('./core/playwright/index');
27
40
  // const { fireEvent, render } = require('@testing-library/react');
28
41
 
@@ -34,8 +47,6 @@ var _index = require("./core/playwright/index");
34
47
  // createBdd
35
48
  // }
36
49
 
37
- // import { fireEvent, render } from '@testing-library/react';
38
-
39
50
  const {
40
51
  Given,
41
52
  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 _rootPath = require("../utils/rootPath");
8
- const playwrightPath = _path.default.resolve((0, _rootPath.getExecutableBinaryPath)('playwright'));
7
+ var _getFilePath = _interopRequireDefault(require("../utils/getFilePath"));
8
+ const playwrightPath = _path.default.resolve('node_modules', '.bin', (0, _getFilePath.default)('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');