puppeteer-browser-ready 0.6.0 → 1.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.
package/README.md
CHANGED
|
@@ -207,7 +207,29 @@ Run specification suites with global fixtures:<br>
|
|
|
207
207
|
[2021-07-14T11:38:26.704Z] Web Server - shutdown: true
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
+
## E) Test Timeout Errors
|
|
211
|
+
By default Mocha allows a test 2,000 ms to complete before timing out with a failure.
|
|
212
|
+
Web page load times can vary significantly, so it's sometimes a good idea to use the `timeout`
|
|
213
|
+
option to bump up the allowed test execution time.
|
|
214
|
+
|
|
215
|
+
Example configuration in **package.json** to allow 5,000 ms:
|
|
216
|
+
```json
|
|
217
|
+
"scripts": {
|
|
218
|
+
"pretest": "run-scripts build",
|
|
219
|
+
"test": "mocha spec/*.spec.js --timeout 5000"
|
|
220
|
+
},
|
|
221
|
+
```
|
|
222
|
+
|
|
210
223
|
<br>
|
|
211
224
|
|
|
212
225
|
---
|
|
226
|
+
**CLI Build Tools**
|
|
227
|
+
- 🎋 [add-dist-header](https://github.com/center-key/add-dist-header): _Prepend a one-line banner comment (with license notice) to distribution files_
|
|
228
|
+
- 📄 [copy-file-util](https://github.com/center-key/copy-file-util): _Copy or rename a file with optional package version number_
|
|
229
|
+
- 📂 [copy-folder-util](https://github.com/center-key/copy-folder-util): _Recursively copy files from one folder to another folder_
|
|
230
|
+
- 🔍 [replacer-util](https://github.com/center-key/replacer-util): _Find and replace strings or template outputs in text files_
|
|
231
|
+
- 🔢 [rev-web-assets](https://github.com/center-key/rev-web-assets): _Revision web asset filenames with cache busting content hash fingerprints_
|
|
232
|
+
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util): _Organize npm scripts into named groups of easy to manage commands_
|
|
233
|
+
- 🚦 [w3c-html-validator](https://github.com/center-key/w3c-html-validator): _Check the markup validity of HTML files using the W3C validator_
|
|
234
|
+
|
|
213
235
|
[MIT License](LICENSE.txt)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! puppeteer-browser-ready
|
|
1
|
+
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
|
|
2
2
|
|
|
3
3
|
/// <reference types="cheerio" />
|
|
4
4
|
import { Browser, HTTPResponse, Page } from 'puppeteer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! puppeteer-browser-ready
|
|
1
|
+
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
|
|
2
2
|
|
|
3
3
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
4
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! puppeteer-browser-ready
|
|
1
|
+
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
|
|
2
2
|
|
|
3
3
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
4
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "puppeteer-browser-ready",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Simple utility to go to a URL and wait for the HTTP response
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Simple utility to go to a URL and wait for the HTTP response",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "dist/puppeteer-browser-ready.js",
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@types/cheerio": "~0.22",
|
|
93
93
|
"@types/express": "~4.17",
|
|
94
|
-
"@types/node": "~18.
|
|
94
|
+
"@types/node": "~18.14",
|
|
95
95
|
"@types/ws": "~8.5",
|
|
96
96
|
"@typescript-eslint/eslint-plugin": "~5.52",
|
|
97
97
|
"@typescript-eslint/parser": "~5.52",
|
|
98
|
-
"add-dist-header": "~0
|
|
98
|
+
"add-dist-header": "~1.0",
|
|
99
99
|
"assert-deep-strict-equal": "~1.0",
|
|
100
|
-
"copy-file-util": "~0
|
|
101
|
-
"copy-folder-util": "~0
|
|
100
|
+
"copy-file-util": "~1.0",
|
|
101
|
+
"copy-folder-util": "~1.0",
|
|
102
102
|
"eslint": "~8.34",
|
|
103
103
|
"jshint": "~2.13",
|
|
104
104
|
"mocha": "~10.2",
|