@zohodesk/testinglibrary 4.1.1 → 4.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node bin/postinstall.js",
@@ -23,19 +23,29 @@
23
23
  "dependencies": {
24
24
  "@babel/code-frame": "7.27.1",
25
25
  "@babel/preset-react": "7.28.5",
26
+ "@babel/runtime": "7.28.6",
26
27
  "@playwright/test": "1.56.1",
27
28
  "@reportportal/agent-js-playwright": "5.2.2",
28
29
  "@testing-library/jest-dom": "6.9.1",
29
- "babel-jest": "30.2.0",
30
+ "@testing-library/react": "13.4.0",
31
+ "@types/react-dom": "18.2.19",
32
+ "@types/jest": "29.5.12",
33
+ "@zohodesk/unit-testing-framework": "0.0.32-experimental",
34
+ "babel-jest": "29.7.0",
30
35
  "babel-plugin-transform-dynamic-import": "2.1.0",
36
+ "commander": "14.0.2",
31
37
  "fast-glob": "3.3.3",
32
- "jest": "30.2.0",
33
- "jest-environment-jsdom": "30.2.0",
38
+ "identity-obj-proxy": "3.0.0",
39
+ "jest": "29.7.0",
40
+ "jest-environment-jsdom": "29.7.0",
41
+ "jest-transform-stub": "2.0.0",
34
42
  "jsonpath": "1.1.1",
35
43
  "msw": "2.11.6",
36
44
  "playwright": "1.56.1",
37
45
  "playwright-bdd": "8.4.2",
38
46
  "properties-reader": "2.3.0",
47
+ "react": "18.2.0",
48
+ "react-dom": "18.2.0",
39
49
  "supports-color": "10.2.2"
40
50
  },
41
51
  "bin": {
@@ -47,13 +57,14 @@
47
57
  "react-dom": "*"
48
58
  },
49
59
  "devDependencies": {
50
- "@babel/cli": "7.28.3",
51
- "@babel/core": "7.28.4",
52
- "@babel/node": "7.28.0",
60
+ "@babel/cli": "7.28.6",
61
+ "@babel/core": "7.29.0",
62
+ "@babel/node": "7.29.0",
53
63
  "@babel/plugin-transform-runtime": "7.28.3",
54
- "@babel/preset-env": "7.28.3",
55
- "@babel/runtime": "7.28.4",
56
- "commander": "14.0.2",
57
- "jest-html-reporter": "4.3.0"
64
+ "@babel/preset-env": "7.29.0",
65
+ "@babel/preset-react": "7.26.3",
66
+ "jest-html-reporter": "4.3.0",
67
+ "ts-jest": "29.3.2",
68
+ "@babel/preset-typescript": "7.26.0"
58
69
  }
59
70
  }
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = generateReport;
8
- var _child_process = require("child_process");
9
- var _path = _interopRequireDefault(require("path"));
10
- var _logger = require("../../utils/logger");
11
- var _rootPath = require("../../utils/rootPath");
12
- var _readConfigFile = require("./readConfigFile");
13
- async function generateReport() {
14
- // await preProcessReport()
15
- const userArgs = process.argv.slice(3);
16
- const playwrightPath = _path.default.resolve((0, _rootPath.getExecutableBinaryPath)('playwright'));
17
- const command = playwrightPath;
18
- const {
19
- reportPath: htmlPath
20
- } = (0, _readConfigFile.generateConfigFromFile)();
21
- const args = ['show-report', htmlPath].concat(userArgs);
22
- const childProcess = (0, _child_process.spawn)(command, args, {
23
- stdio: 'inherit'
24
- });
25
- childProcess.on('error', error => {
26
- _logger.Logger.log(_logger.Logger.FAILURE_TYPE, error);
27
- });
28
- childProcess.on('exit', (code, signal) => {
29
- _logger.Logger.log(_logger.Logger.FAILURE_TYPE, `Child Process Exited with Code ${code} and Signal ${signal}`);
30
- process.exit();
31
- });
32
- process.on('exit', () => {
33
- _logger.Logger.log(_logger.Logger.INFO_TYPE, 'Terminating Playwright Process...');
34
- childProcess.kill();
35
- return;
36
- });
37
- process.on('SIGINT', () => {
38
- _logger.Logger.log(_logger.Logger.INFO_TYPE, 'Cleaning up...');
39
- childProcess.kill();
40
- process.exit();
41
- });
42
- }