Skip to content

fix(test): restore alchemy/Test/Vitest harness - #947

Merged
sam-goodwin merged 2 commits into
mainfrom
claude/restore-vitest-support-0a32fb
Jul 26, 2026
Merged

fix(test): restore alchemy/Test/Vitest harness#947
sam-goodwin merged 2 commits into
mainfrom
claude/restore-vitest-support-0a32fb

Conversation

@sam-goodwin

@sam-goodwin sam-goodwin commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

The internal migration to the alchemy-test runner (#797) deleted src/Test/Vitest.ts and dropped the vitest / @effect/vitest deps, unintentionally removing the public alchemy/Test/Vitest entrypoint that shipped through beta.63 (reported on Discord).

  • Restore packages/alchemy/src/Test/Vitest.ts exactly as it was before the removal — every Test/Core.ts API it uses (toEffect, run, scratchStack, withProviders, deploy, destroy) is unchanged, so no porting was needed
  • Re-add @effect/vitest to dependencies and vitest to devDependencies (both catalog:, same sections as before)
  • Add an explicit ./Test/Vitest export entry matching ./Test/Bun / ./Test/Http (previously only reachable via the ./* wildcard)

Verified with bun tsc -b and a vitest smoke run exercising Test.make / beforeAll / test / test.skip / test.skipIf:

import * as Test from "alchemy/Test/Vitest";
import { expect } from "@effect/vitest";

const { test, beforeAll } = Test.make({ providers: ... });

The internal suite stays on alchemy-test; vitest.config.ts is intentionally not restored — consumers bring their own vitest config.

🤖 Generated with Claude Code

sam-goodwin and others added 2 commits July 25, 2026 23:24
The internal migration to the alchemy-test runner (#797) deleted
src/Test/Vitest.ts and dropped the vitest / @effect/vitest deps,
unintentionally removing the public alchemy/Test/Vitest entrypoint
that shipped through beta.63.

Restore the file as it was before the removal (all Test/Core.ts APIs
it uses are unchanged) and re-add @effect/vitest to dependencies and
vitest to devDependencies.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Matches ./Test/Bun and ./Test/Http; previously only reachable via the
./* wildcard.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sam-goodwin
sam-goodwin merged commit 4f6754d into main Jul 26, 2026
5 checks passed
@sam-goodwin
sam-goodwin deleted the claude/restore-vitest-support-0a32fb branch July 26, 2026 06:27
@alchemy-version-bot

alchemy-version-bot Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Install the packages built from this commit:

alchemy

bun add alchemy@https://pkg.ing/alchemy/f7102e2

@alchemy.run/better-auth

bun add @alchemy.run/better-auth@https://pkg.ing/@alchemy.run/better-auth/f7102e2

@alchemy.run/pr-package

bun add @alchemy.run/pr-package@https://pkg.ing/@alchemy.run/pr-package/f7102e2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant