cm-chessboard 8.15.0 → 8.15.2

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 (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +3 -4
package/README.md CHANGED
@@ -438,12 +438,12 @@ When `movePieceForm` is enabled, press **Shift+Option+E** (Mac) or **Shift+Alt+E
438
438
 
439
439
  The unit tests use the tiny [Teevi](https://github.com/shaack/teevi) framework and run in a real browser.
440
440
 
441
- - **In the browser (no install needed):** open [`test/index.html`](test/index.html) directly, or run `npm test`, which
442
- just prints that hint.
443
- - **Headless (optional):** `npm run test:headless` runs the same suite in headless Chrome and exits non-zero on failure,
444
- which is handy for CI. To keep cm-chessboard dependency-free, [puppeteer](https://pptr.dev) is **not** a project
445
- dependency; install it **globally** for this: `npm install -g puppeteer`. The runner starts its own static server, so
446
- nothing else is required.
441
+ - **In the browser (no install needed):** open [`test/index.html`](test/index.html) directly.
442
+ - **Headless:** `npm test` runs the same suite in headless Chrome via the `teevi` command and exits non-zero on
443
+ failure, which is handy for CI. To keep cm-chessboard dependency-free, [puppeteer](https://pptr.dev) is **not** a
444
+ project dependency; install it **globally** for this: `npm install -g puppeteer`. The runner starts its own static
445
+ server, so nothing else is required. `TEEVI_TIMEOUT` (ms, default 30000) raises the limit for slow machines, and a
446
+ test that hangs fails after 10 seconds with its name, see `teevi.run({timeout})` in `test/index.html`.
447
447
 
448
448
  ## Usage with JS Frameworks
449
449
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "8.15.0",
3
+ "version": "8.15.2",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -22,8 +22,7 @@
22
22
  "LICENSE"
23
23
  ],
24
24
  "scripts": {
25
- "test": "tput setaf 4;echo 'Run test/index.html in your browser for unit testing, or `npm run test:headless` (needs a global puppeteer).'; echo ''; exit 0",
26
- "test:headless": "node test/headless.mjs",
25
+ "test": "teevi",
27
26
  "test:package": "node test/package.mjs"
28
27
  },
29
28
  "repository": {
@@ -37,6 +36,6 @@
37
36
  },
38
37
  "homepage": "https://github.com/shaack/cm-chessboard#readme",
39
38
  "devDependencies": {
40
- "teevi": "^2.4.1"
39
+ "teevi": "^2.7.0"
41
40
  }
42
41
  }