Skip to content

feat: backport Layer.mock from effect-smol #5151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 11, 2025

Conversation

f15u
Copy link
Contributor

@f15u f15u commented Jul 3, 2025

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Add Layer.mock for implementing partial services. Useful for testing purposes.

Related

I'll make this PR a draft until Effect-TS/effect-smol#215 is merged, in case something changes.

@github-project-automation github-project-automation bot moved this to Discussion Ongoing in PR Backlog Jul 3, 2025
Copy link

changeset-bot bot commented Jul 3, 2025

🦋 Changeset detected

Latest commit: 41a1536

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
effect Minor
@effect/cli Major
@effect/cluster Major
@effect/experimental Major
@effect/opentelemetry Major
@effect/platform-browser Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/platform Major
@effect/printer-ansi Major
@effect/printer Major
@effect/rpc Major
@effect/sql-clickhouse Major
@effect/sql-d1 Major
@effect/sql-drizzle Major
@effect/sql-kysely Major
@effect/sql-libsql Major
@effect/sql-mssql Major
@effect/sql-mysql2 Major
@effect/sql-pg Major
@effect/sql-sqlite-bun Major
@effect/sql-sqlite-do Major
@effect/sql-sqlite-node Major
@effect/sql-sqlite-react-native Major
@effect/sql-sqlite-wasm Major
@effect/sql Major
@effect/typeclass Major
@effect/vitest Major
@effect/workflow Major
@effect/ai Major
@effect/ai-amazon-bedrock Major
@effect/ai-anthropic Major
@effect/ai-google Major
@effect/ai-openai Major

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

@effect-bot effect-bot changed the base branch from main to next-minor July 3, 2025 10:26
@effect-bot effect-bot force-pushed the next-minor branch 7 times, most recently from 15bad7b to e4399ce Compare July 4, 2025 03:11
@f15u f15u marked this pull request as ready for review July 4, 2025 12:45
@f15u f15u requested a review from mikearnaldi as a code owner July 4, 2025 12:45
@effect-bot effect-bot force-pushed the next-minor branch 16 times, most recently from cf038a9 to ffe83cd Compare July 9, 2025 05:17
@effect-bot effect-bot force-pushed the federico/backport-layer-mock branch from f69280c to 4517aa3 Compare July 10, 2025 22:22
Copy link
Contributor

@tim-smart tim-smart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you could rebase against the latest next-minor, and feel free to copy over the docs to the changeset.

@f15u f15u force-pushed the federico/backport-layer-mock branch from 4517aa3 to 399ab61 Compare July 10, 2025 23:22
@f15u
Copy link
Contributor Author

f15u commented Jul 10, 2025

If you could rebase against the latest next-minor, and feel free to copy over the docs to the changeset.

Done! I'm not sure if I did everything correct not being used to this workflow

@effect-bot effect-bot force-pushed the next-minor branch 2 times, most recently from aea43f1 to 46bb59f Compare July 10, 2025 23:44
@f15u f15u requested a review from tim-smart July 10, 2025 23:48
@tim-smart tim-smart force-pushed the federico/backport-layer-mock branch from 399ab61 to 41a1536 Compare July 11, 2025 00:06
@tim-smart tim-smart merged commit f7c0b46 into Effect-TS:next-minor Jul 11, 2025
11 checks passed
@github-project-automation github-project-automation bot moved this from Discussion Ongoing to Done in PR Backlog Jul 11, 2025
effect-bot pushed a commit that referenced this pull request Jul 11, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 11, 2025
Co-authored-by: Tim <hello@timsmart.co>
@f15u f15u deleted the federico/backport-layer-mock branch July 12, 2025 00:23
effect-bot pushed a commit that referenced this pull request Jul 13, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 13, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 13, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 13, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 13, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 13, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 14, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 14, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 14, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 14, 2025
Co-authored-by: Tim <hello@timsmart.co>
effect-bot pushed a commit that referenced this pull request Jul 15, 2025
Co-authored-by: Tim <hello@timsmart.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants