Skip to content

Commit ee59b2d

Browse files
DavertMikclaude
andcommitted
fix(config): drop unparseable @type annotation that broke npm run def
The Array-of-object-literal form /** @type {Array<{ fn: (cfg: object) => void, ran: boolean }>} */ is invalid JSDoc syntax for the version of jsdoc this repo's `npm run def` runs through (it doesn't parse object-literal type expressions inside generic params). Result: jsdoc bailed, def generation failed, both "test (20.x)" and the runner test that calls `npm run def` went red. The annotation was decoration only — the hook list is internal state. Replace with a plain comment, ship the doc-regen of plugins.md the def task produced. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5a3be25 commit ee59b2d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

docs/plugins.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,10 @@ Enable it via `-p` option with one or more colon-chained args:
392392
* `show=true|false` — toggles `show` on Playwright/Puppeteer; injects/strips
393393
`--headless` in WebDriver chrome/firefox capability args
394394

395-
Values are coerced: `true`/`false` → boolean, numbers → Number, otherwise string.
395+
Values stay as strings. `true` / `false` are coerced to booleans.
396+
397+
Requires `@codeceptjs/configure` to be installed; if missing, the plugin
398+
logs a hint and skips the override.
396399

397400
### Parameters
398401

lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const defaultConfig = {
3232
],
3333
}
3434

35-
/** @type {Array<{ fn: (cfg: object) => void, ran: boolean }>} */
35+
// Array<{ fn: (cfg) => void, ran: boolean }>
3636
let hooks = []
3737
let config = {}
3838

0 commit comments

Comments
 (0)