Skip to content

Commit 381e4ef

Browse files
committed
Release v1.0.0
1 parent 3606a7a commit 381e4ef

File tree

6 files changed

+32
-10
lines changed

6 files changed

+32
-10
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,29 @@ Run specification suites with global fixtures:<br>
207207
[2021-07-14T11:38:26.704Z] Web Server - shutdown: true
208208
```
209209
210+
## E) Test Timeout Errors
211+
By default Mocha allows a test 2,000 ms to complete before timing out with a failure.&nbsp;
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+
210223
<br>
211224
212225
---
226+
**CLI Build Tools**
227+
- 🎋 [add-dist-header](https://github.com/center-key/add-dist-header):&nbsp; _Prepend a one-line banner comment (with license notice) to distribution files_
228+
- 📄 [copy-file-util](https://github.com/center-key/copy-file-util):&nbsp; _Copy or rename a file with optional package version number_
229+
- 📂 [copy-folder-util](https://github.com/center-key/copy-folder-util):&nbsp; _Recursively copy files from one folder to another folder_
230+
- 🔍 [replacer-util](https://github.com/center-key/replacer-util):&nbsp; _Find and replace strings or template outputs in text files_
231+
- 🔢 [rev-web-assets](https://github.com/center-key/rev-web-assets):&nbsp; _Revision web asset filenames with cache busting content hash fingerprints_
232+
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):&nbsp; _Organize npm scripts into named groups of easy to manage commands_
233+
- 🚦 [w3c-html-validator](https://github.com/center-key/w3c-html-validator):&nbsp; _Check the markup validity of HTML files using the W3C validator_
234+
213235
[MIT License](LICENSE.txt)

dist/puppeteer-browser-ready.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! puppeteer-browser-ready v0.6.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1+
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
22

33
/// <reference types="cheerio" />
44
import { Browser, HTTPResponse, Page } from 'puppeteer';

dist/puppeteer-browser-ready.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! puppeteer-browser-ready v0.6.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1+
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
22

33
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
44
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

dist/puppeteer-browser-ready.umd.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! puppeteer-browser-ready v0.6.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1+
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
22

33
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
44
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

hello-world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"dependencies": {
1717
"jshint": "~2.13",
1818
"puppeteer": "~19.7",
19-
"puppeteer-browser-ready": "~0.6"
19+
"puppeteer-browser-ready": "~1.0"
2020
}
2121
}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "puppeteer-browser-ready",
3-
"version": "0.6.0",
4-
"description": "Simple utility to go to a URL and wait for the HTTP response (written in TypeScript)",
3+
"version": "1.0.0",
4+
"description": "Simple utility to go to a URL and wait for the HTTP response",
55
"license": "MIT",
66
"type": "module",
77
"module": "dist/puppeteer-browser-ready.js",
@@ -91,14 +91,14 @@
9191
"devDependencies": {
9292
"@types/cheerio": "~0.22",
9393
"@types/express": "~4.17",
94-
"@types/node": "~18.13",
94+
"@types/node": "~18.14",
9595
"@types/ws": "~8.5",
9696
"@typescript-eslint/eslint-plugin": "~5.52",
9797
"@typescript-eslint/parser": "~5.52",
98-
"add-dist-header": "~0.3",
98+
"add-dist-header": "~1.0",
9999
"assert-deep-strict-equal": "~1.0",
100-
"copy-file-util": "~0.1",
101-
"copy-folder-util": "~0.2",
100+
"copy-file-util": "~1.0",
101+
"copy-folder-util": "~1.0",
102102
"eslint": "~8.34",
103103
"jshint": "~2.13",
104104
"mocha": "~10.2",

0 commit comments

Comments
 (0)