Repository navigation
feat(rstest): add adapter with reconciled lifecycle fixes - #8135
ScriptedAlchemy wants to merge 13 commits into
Conversation
Port the existing upstream proposal onto current main, incorporate the community equality and fiber-settlement corrections, and retain native Effect Arbitrary support. Add compatibility and lifecycle regressions, shared-layer concurrency, and a neutral type alias. Co-authored-by: Petr Glaser <[email protected]>
🦋 Changeset detectedLatest commit: de55885 The changes in this PR will be included in the next version bump. This PR includes changesets to release 31 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
|
Thanks for putting this together. As discussed on #7976, we'd rather not take on maintaining a second test-runner adapter in this repo, and https://github.com/Nsttt/effect-rstest covers it as a community package. Closing for that reason. |
Closes EFF-1324
Adds
@effect/rstestalongside@effect/vitest, following the existing package layout, implementation, and test conventions. It provides scoped tests, TestClock, shared layers, and native EffectArbitraryproperty testing, with Rstest runner exports.The adapter supports Effect equality, expected-failure modifiers, shared-layer concurrency, and per-test
concurrent,skip,only,todoandfailsoptions. Timed-out tests await their finalizers, and layer teardown interrupts unfinished setup before releasing its scope. Rstest 0.11.10 is supported. Effect helper types use theRstestnamespace.Tests mirror the
@effect/vitestsuite, plus coverage for Effect equality, finalizer completion after a test timeout, and the per-test options. The package includes workspace, typecheck, release, and CI configuration.Timeouts remain runner failures. Native
afterEachruns before the finalizer barrier; the barrier is bounded by the runner's hook timeout. Layer teardown retains its hook deadline. Explicitly concurrent tests are not serialized by cleanup.Validation
pnpm --filter @effect/rstest test: 113 passed, 7 skipped, 1 todo across five files.pnpm test-types packages/rstest/typetest/index.tst.ts: 28 tests, 54 assertions, TypeScript 5.9 and 6.0.pnpm lint-fixandpnpm check: pass.