Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@effect/platform-deno",
"@effect/platform-node",
"@effect/platform-node-shared",
"@effect/rstest",
"@effect/sql-clickhouse",
"@effect/sql-d1",
"@effect/sql-libsql",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/rstest-package.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/rstest": patch
---

Add `@effect/rstest` with scoped Effect tests, test services, shared layers, and property testing for Rstest. Includes assertion helpers, Effect equality support, and exports from `@rstest/core`.
13 changes: 13 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,19 @@ jobs:
- name: Test
run: ${{ matrix.command }}

rstest:
name: Test (Rstest)
runs-on: namespace-profile-linux-small
permissions:
contents: read
timeout-minutes: 10
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Install dependencies
uses: ./.github/actions/setup
- name: Test @effect/rstest
run: pnpm --filter @effect/rstest test

doctest:
name: Test (Documentation)
runs-on: namespace-profile-linux-small
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ This monorepo contains the core `effect` package alongside integration packages
| [`@effect/atom-vue`](packages/atom/vue) | Vue bindings for Effect Atom | [docs](https://effect.website/docs/v4/api/atom-vue) |
| [`@effect/opentelemetry`](packages/opentelemetry) | [OpenTelemetry](https://opentelemetry.io) integration | [docs](https://effect.website/docs/v4/api/opentelemetry) |
| [`@effect/vitest`](packages/vitest) | Helpers for testing with [Vitest](https://vitest.dev) | [docs](https://effect.website/docs/v4/api/vitest) |
| [`@effect/rstest`](packages/rstest) | Helpers for testing with [Rstest](https://rstest.rs) | [docs](https://effect.website/docs/v4/api/rstest) |
| [`@effect/docgen`](packages/tools/docgen) | Documentation generator for Effect projects | [docs](https://effect.website/docs/v4/api/docgen) |
| [`@effect/doctest`](packages/tools/doctest) | Runs JSDoc examples as Vitest tests | [docs](https://effect.website/docs/v4/api/doctest) |
| [`@effect/openapi-generator`](packages/tools/openapi-generator) | Generate Effect code from OpenAPI specifications | [docs](https://effect.website/docs/v4/api/openapi-generator) |
Expand Down
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"**/*.js",
"**/*.d.ts",
"**/vitest.*.ts",
"**/rstest.*.ts",
"**/.tsbuildinfo/",
"**/node_modules/",
"**/dist/",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"@effect/doctest": "workspace:^",
"@effect/jsdocs": "workspace:^",
"@effect/oxc": "workspace:^",
"@effect/rstest": "workspace:^",
"@effect/tsgo": "^0.41.0",
"@effect/utils": "workspace:^",
"@effect/vitest": "workspace:^",
Expand Down
21 changes: 21 additions & 0 deletions packages/rstest/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Effectful Technologies Inc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading