Support Rstest static type tests in discovery and run actions
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 13
- Forks
- 1
- Ø Merge
- 2 T. 52 Min.
- Gemergte PRs (30 T.)
- 25
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus rstackjs/rstack-editor
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 38/100
rstackjs/rstack-editor#86 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
rstackjs/rstack-editor#75 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Dependency DashboardOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 15/100
rstackjs/rstack-editor#48 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in rstackjs/rstack-editor
Ähnliche Issues
-
[Bug]: Manager UI logo fails to load — broken external URLEvtl. vergeben @kavindu-udara hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
excalidraw/excalidraw#12743 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: cli priority: P2 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
appandflow/stim#6381 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: ui-kit type: chore
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
schlessera/brain-kit#4598 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue spec
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100