testaro 51.0.4 → 52.0.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.
Files changed (3) hide show
  1. package/README.md +3 -23
  2. package/netWatch.js +0 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -95,29 +95,9 @@ Version 16 or later of [Node.js](https://nodejs.org/en/).
95
95
 
96
96
  ## Installation
97
97
 
98
- Some of the dependencies of Testaro are published as Github packages. Installing Testaro therefore requires you to be authorized to read Github packages. If you do not yet have that authorization, you can give it to yourself as follows:
99
- - Log in at [Github](https://github.com).
100
- - From your avatar in the upper-right corner, choose “Settings”.
101
- - In the left sidebar, choose “Developer settings”.
102
- - In the left sidebar, choose “Personal access tokens”.
103
- - Activate the button “Generate new token”.
104
- - Give the new token a descriptive note.
105
- - Select an expiration date.
106
- - Check the checkbox `read:packages`.
107
- - Activate the button “Generate token”.
108
- - Copy the generated token (you can use the copy icon next to it).
109
- - In the local directory of the project into which you will install Testaro, create a file named `.npmrc`, unless it already exists.
110
- - Populate the `.npmrc` file with the following statements, replacing `abc` with your Github username and `xyz` with the token that you copied:
111
-
112
- ```bash
113
- @siteimprove:registry=https://npm.pkg.github.com
114
- //npm.pkg.github.com/:username=abc
115
- //npm.pkg.github.com/:_authToken=xyz
116
- ```
117
-
118
- Once you have done that, you can install Testaro as you would install any `npm` package.
119
-
120
- However, if the Playwright dependency is ever updated to a newer version, you must also reinstall its browsers by executing the statement `npx playwright install`.
98
+ You can install Testaro as you would install any `npm` package.
99
+
100
+ However, whenever the Playwright dependency is updated to a newer version, you must also reinstall its browsers by executing the statement `npx playwright install`. It is safe to execute this after each `npm update`; if there are no new browsers to install, nothing will happen.
121
101
 
122
102
  To run Testaro after installation, provide the environment variables described below under “Environment variables”.
123
103
 
package/netWatch.js CHANGED
@@ -257,15 +257,11 @@ exports.netWatch = async (isForever, intervalInSeconds, isCertTolerant = true) =
257
257
  .on('error', async error => {
258
258
  // If it is a refusal to connect:
259
259
  if (error.code && error.code.includes('ECONNREFUSED')) {
260
- // Abort the watch.
261
- abort = true;
262
260
  // Report this.
263
261
  console.log(`${logStart}no connection`);
264
262
  }
265
263
  // Otherwise, if it was a DNS failure:
266
264
  else if (error.code && error.code.includes('ENOTFOUND')) {
267
- // Abort the watch.
268
- abort = true;
269
265
  // Report this.
270
266
  console.log(`${logStart}no domain name resolution`);
271
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "51.0.4",
3
+ "version": "52.0.0",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {