Support Rstest static type tests in discovery and run actions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Read the core PR at https://github.com/web-infra-dev/rstest/pull/1984 and the editor contribution guidelines first; the issue does not name editor files or test paths. Add compatibility for the described @rstest/typecheck discovery, run actions, and result mapping, then cover mixed runtime/type projects and the listed limitations in tests against the core PR build before release.
由索引模型根据 Issue 内容生成。
描述
Rstest is adding opt-in type tests through typecheck configuration and the instance API/CLI. The implementation is loaded from the optional @rstest/typecheck package, which must match the core version. Type assertions and lightweight static registration APIs are imported from @rstest/typecheck; core registration imports also remain recognized. This tracks the companion editor compatibility work required by the core repository's contribution guidelines.
The implementation discovers *.test-d.ts / *.spec-d.ts files, statically collects direct describe / test / it calls, and runs the project's compiler without executing the test file. listTests({ includeTaskLocation: true }) returns these cases through the existing ListedTest shape. Reporter case results carry meta.typecheck: true; file results additionally carry the checker name and version.
Please cover:
- Discover and run configured type tests through
createRstest/listTests/run, including mixed runtime/type projects andtypecheck.only. - Preserve source locations, nested names, and compiler diagnostics. Expression titles are their source text; files without static registrations have a single
[typecheck]case. - Explain that name/file filters select reported cases while the full tsconfig remains checked.
.only,.skip, parameterized and conditional registration modifiers are unsupported and produce collection errors. - Type tests run on the host for browser projects as well. They do not execute setup files, runtime hooks, snapshots, retries, or coverage; editor actions should respect those limits.
- Type testing does not support watch mode. Use one-shot run actions for type cases; the core reports an error for watch plus typecheck.
- Recognize
@rstest/typecheckregistration imports and preserve actionable missing-package/version-mismatch errors. Ordinary runtime projects do not require this package. - Verify
onlyFailuresacross mixed runtime/type projects: core shares file failure history and falls back to a full run once no recorded failures remain. Explicit file/name filters take precedence. - Respect
bailresults: later type cases and projects are not reported after the run-wide limit; the compiler invocation already started for a project still checks the full tsconfig. - Include discovery/run/result mapping tests against the core PR build before release.
- 主要语言
- TypeScript
- 星标
- 13
- 派生
- 1
- 平均合并
- 2 天 52 分钟
- 30 天内合并 PR
- 25
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rstackjs/rstack-editor 的其他 Issue
-
难度 5/5 一周以上 新手友好度 38/100
rstackjs/rstack-editor#86 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
rstackjs/rstack-editor#75 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 15/100
rstackjs/rstack-editor#48 ·
维护者通常 1 天内回复
查看 rstackjs/rstack-editor 的全部 Issue
相似的 Issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 80/100
lingdojo/kana-dojo#34664 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug: achievement job reports success when its Slack announcements fail可能已有人在做 @Aadithya-kl 今天认领。 未关闭app: slackbot good first issue
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
enhancement help wanted
难度 2/5 半天 新手友好度 62/100
plagor44-ux/liam-e#168 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 78/100
jerney-nexus/epikrise#364 ·
维护者通常 1 天内回复