askui 0.28.1 → 0.29.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.
@@ -185,7 +185,7 @@ class CreateExampleProject {
185
185
  return __awaiter(this, void 0, void 0, function* () {
186
186
  const runCommand = (0, util_1.promisify)(child_process_1.exec);
187
187
  const frameworkDependencies = {
188
- jest: 'npm i -D @askui/askui-reporters typescript ts-node @types/jest@30.0.0 ts-jest@29.4.0 jest@29.7.0 @askui/jest-allure-circus eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import @askui/eslint-plugin-askui hpagent',
188
+ jest: 'npm i -D @askui/askui-reporters@>2.1.4 typescript ts-node @types/jest@30.0.0 ts-jest@29.4.0 jest@29.7.0 allure-jest@3.3.0 allure-js-commons@3.3.0 eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import @askui/eslint-plugin-askui hpagent',
189
189
  };
190
190
  yield runCommand(frameworkDependencies.jest);
191
191
  });
@@ -179,7 +179,7 @@ export class CreateExampleProject {
179
179
  return __awaiter(this, void 0, void 0, function* () {
180
180
  const runCommand = promisify(exec);
181
181
  const frameworkDependencies = {
182
- jest: 'npm i -D @askui/askui-reporters typescript ts-node @types/jest@30.0.0 ts-jest@29.4.0 jest@29.7.0 @askui/jest-allure-circus eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import @askui/eslint-plugin-askui hpagent',
182
+ jest: 'npm i -D @askui/askui-reporters@>2.1.4 typescript ts-node @types/jest@30.0.0 ts-jest@29.4.0 jest@29.7.0 allure-jest@3.3.0 allure-js-commons@3.3.0 eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import @askui/eslint-plugin-askui hpagent',
183
183
  };
184
184
  yield runCommand(frameworkDependencies.jest);
185
185
  });
@@ -6,7 +6,7 @@ const config: Config.InitialOptions = {
6
6
  'Math',
7
7
  ],
8
8
  setupFilesAfterEnv: ['./helpers/askui-helper.ts'],
9
- testEnvironment: '@askui/jest-allure-circus',
9
+ testEnvironment: 'allure-jest/node',
10
10
  };
11
11
 
12
12
  // eslint-disable-next-line import/no-default-export
@@ -0,0 +1,32 @@
1
+ import { UiControlClient } from 'askui';
2
+ {{ allure_stepreporter_import }}
3
+
4
+ // Client is necessary to use the askui API
5
+ // eslint-disable-next-line import/no-mutable-exports
6
+ let aui: UiControlClient;
7
+
8
+ {{ timeout_placeholder }}
9
+
10
+ beforeAll(async () => {
11
+ aui = await UiControlClient.build({
12
+ {{ credentials }}
13
+ {{ reporter_placeholder }}
14
+ });
15
+
16
+ await aui.connect();
17
+ });
18
+
19
+ beforeEach(async () => {
20
+ await aui.startVideoRecording();
21
+ });
22
+
23
+ afterEach(async () => {
24
+ await aui.stopVideoRecording();
25
+ {{ allure_stepreporter_attach_video }}
26
+ });
27
+
28
+ afterAll(async () => {
29
+ aui.disconnect();
30
+ });
31
+
32
+ export { aui };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askui",
3
- "version": "0.28.1",
3
+ "version": "0.29.0",
4
4
  "license": "MIT",
5
5
  "author": "askui GmbH <info@askui.com> (http://www.askui.com/)",
6
6
  "description": "Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on",
@@ -39,10 +39,10 @@
39
39
  "copyExampleProject": "shx cp -r example_projects_templates/ dist/ && shx cp -r bin/* dist/",
40
40
  "lint": "eslint --cache --fix --max-warnings 0 \"./**/*.{js,ts}\"",
41
41
  "lint:staged": "lint-staged",
42
- "test": "NODE_EXTRA_CA_CERTS='test/proxy/certs/unit_test.pem' jest '/src'",
42
+ "test": "cross-env NODE_EXTRA_CA_CERTS='test/proxy/certs/unit_test.pem' jest '/src'",
43
43
  "postinstall": "node -e \"require('./bin/askui-postinstall')\"",
44
- "release:prerelease": "HUSKY=0 release-it --preRelease=next",
45
- "release": "HUSKY=0 release-it"
44
+ "release:prerelease": "cross-env HUSKY=0 release-it --preRelease=next",
45
+ "release": "cross-env HUSKY=0 release-it"
46
46
  },
47
47
  "files": [
48
48
  "dist/cjs/",
@@ -89,6 +89,7 @@
89
89
  "@types/ws": "8.5.12",
90
90
  "@typescript-eslint/eslint-plugin": "5.10.0",
91
91
  "@typescript-eslint/parser": "5.10.0",
92
+ "cross-env": "^10.1.0",
92
93
  "eslint": "8.7.0",
93
94
  "eslint-config-airbnb-base": "15.0.0",
94
95
  "eslint-config-airbnb-typescript": "16.1.0",