Support Rstest static type tests in discovery and run actions
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 13
- Fork
- 1
- Merge trung bình
- 2 ngày 52 phút
- Pull request đã merge (30 ngày)
- 25
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rstackjs/rstack-editor
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
rstackjs/rstack-editor#86 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
rstackjs/rstack-editor#75 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dependency DashboardĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
rstackjs/rstack-editor#48 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rstackjs/rstack-editor
Issue tương tự
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
lingdojo/kana-dojo#34664 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug: achievement job reports success when its Slack announcements failCó thể đã có người làm @Aadithya-kl đã nhận hôm nay. Đang mởapp: slackbot good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement help wanted
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
plagor44-ux/liam-e#168 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jerney-nexus/epikrise#364 ·
Maintainer thường phản hồi trong vòng 1 ngày