Docs: Expect helper config example fails in 4.x, and the sidebar links to the old 3.x page
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 75/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, node.js
调研方向
阅读引用的侧边栏条目附近的 docs/assertions.md、docs/helpers/ExpectHelper.md 和 astro.config.mjs;将过时的 src/content/docs/helpers/expect.md 与当前的 expect-helper 页面进行核对。更新 Expect Helper 示例,使其使用 issue 中所示的 package 配置,并将侧边栏指向当前页面。当文档中的两个示例都能在 4.x package 配置下加载,且侧边栏链接到当前页面时,即为完成。
由索引模型根据 Issue 内容生成。
描述
In 4.x the Expect helper is no longer built in; it is the separate package @codeceptjs/expect-helper. The docs still show the 3.x config, which fails to load in 4.x.
1. The config example is wrong
https://codecept.io/helpers/expect-helper and the "Quick Assertions with Expect Helper" section of https://codecept.io/assertions both show:
helpers: {
Playwright: { /* ... */ },
ExpectHelper: {},
}
Without require, getHelperModuleName() in lib/container.js resolves the key to the built-in path ./helper/ExpectHelper, which doesn't exist in 4.x. Either of these works:
ExpectHelper: { require: '@codeceptjs/expect-helper' },
// or, because a key starting with @codeceptjs/ is used as the module name:
'@codeceptjs/expect-helper': {},
Sources:
docs/assertions.md(around line 100)docs/helpers/ExpectHelper.md, which is generated from the JSDoc example incodeceptjs/expect-helperindex.js("Zero-configuration when paired with other helpers..."). The package's own README already shows therequireform.
2. The sidebar links to the old 3.x page
The "Expect" item under Helpers points to https://codecept.io/helpers/expect, an older copy of the page (title "Expect", config Expect: {}). The current page is https://codecept.io/helpers/expect-helper, which the sidebar doesn't link to.
In codeceptjs/website:
astro.config.mjs:311:{label: 'Expect', link: 'helpers/expect'}src/content/docs/helpers/expect.mdis the stale page.expect-helper.mdis the one synced from[email protected].
Environment: CodeceptJS 4.2.2, @codeceptjs/expect-helper 1.0.2
Created by AI agent (Claude Code)
- 主要语言
- JavaScript
- 星标
- 4.2k
- 派生
- 754
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 33
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codeceptjs/CodeceptJS 的其他 Issue
-
step.duration reflects only the last retry attempt (HelperStep.run() overwrites startTime)可能已有人在做 @mirao 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
codeceptjs/CodeceptJS#5774 · 1 条评论 ·
维护者通常 2 天内回复
-
`I.waitForFile` (FileSystem helper) fails if directory does not exist (yet)可能已有人在做 @danielrentz 于 274 天前认领。 未关闭stale
难度 2/5 1-3 小时 新手友好度 72/100
codeceptjs/CodeceptJS#5420 · 1 条评论 ·
维护者通常 2 天内回复
-
stale
难度 2/5 1-3 小时 新手友好度 78/100
codeceptjs/CodeceptJS#4958 · 10 条评论 · 2 个 reaction ·
维护者通常 2 天内回复
-
stale
难度 1/5 1 小时以内 新手友好度 72/100
codeceptjs/CodeceptJS#4778 · 3 条评论 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 72/100
codeceptjs/CodeceptJS#5772 ·
维护者通常 2 天内回复
查看 codeceptjs/CodeceptJS 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
mailgun/mailgun.js#544 ·
-
beginner bug frontend
难度 2/5 1-3 小时 新手友好度 85/100
BistaDinesh03/critique#266 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
solana-foundation/solana-web3.js#4015 · 1 条评论 ·
维护者通常 1 天内回复
-
area: dependencies auto-generated cwe: 405 dependencies ecosystem: npm help wanted package: minimatch scope: runtime security security-alert severity: medium source: dependabot supply-chain vulnerability
难度 2/5 半天 新手友好度 65/100
tdk-landscape/tdk-cli-core#2811 ·
-
a11y bug confirmed issue
难度 2/5 1-3 小时 新手友好度 76/100
open-webui/open-webui#33442 · 2 条评论 ·
维护者通常 1 天内回复