testdriverai 5.7.26 → 5.7.28

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.
@@ -5,13 +5,17 @@ jobs:
5
5
  runs-on: ubuntu-latest
6
6
  steps:
7
7
  - uses: actions/checkout@v2
8
+ with:
9
+ # We need to fetch the full history to check for changes since `main`
10
+ fetch-depth: 0
8
11
  - name: Set up Node.js
9
12
  uses: actions/setup-node@v2
10
13
  with:
11
14
  node-version: 20
12
- - name: npm install
13
- run: npm install -D --ignore-scripts
15
+ - name: npm ci
16
+ run: npm ci --ignore-scripts
14
17
  - name: Run ESLint
15
- run: npx eslint
18
+ run: npx eslint . --max-warnings 0
19
+ # Only check files that have been Added/Created/Modified/Renamed/Type-changed since `main`
16
20
  - name: Run Prettier
17
- run: npx prettier .
21
+ run: git diff --name-only --diff-filter=ACMRT origin/main HEAD | xargs -r npx prettier --check --ignore-unknown
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
3
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
4
+ }
@@ -114,7 +114,6 @@ app.whenReady().then(() => {
114
114
  // window.webContents.openDevTools();
115
115
 
116
116
  ipc.serve(() => {
117
- console.error("Serving IPC");
118
117
  for (const event of eventsArray) {
119
118
  ipc.server.on(event, (data) => {
120
119
  if (event === "show-window") {
@@ -137,7 +136,6 @@ app.whenReady().then(() => {
137
136
  );
138
137
 
139
138
  ipc.server.on("connect", () => {
140
- console.error("Client connected");
141
139
  clearTimeout(timeout);
142
140
  });
143
141
 
@@ -159,7 +157,9 @@ app.whenReady().then(() => {
159
157
  });
160
158
 
161
159
  function exit(code = 0, reason = "") {
162
- console.error(`Exiting with code ${code} and reason: "${reason}"`);
163
- console.log(`Exiting with code ${code} and reason: "${reason}"`);
160
+ if (code && reason) {
161
+ console.error(`Exiting with code ${code} and reason: "${reason}"`);
162
+ }
163
+
164
164
  process.exit(code);
165
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "5.7.26",
3
+ "version": "5.7.28",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {