fix(test): restore alchemy/Test/Vitest harness - #947
Merged
Conversation
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>
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The internal migration to the alchemy-test runner (#797) deleted
src/Test/Vitest.tsand dropped thevitest/@effect/vitestdeps, unintentionally removing the publicalchemy/Test/Vitestentrypoint that shipped through beta.63 (reported on Discord).packages/alchemy/src/Test/Vitest.tsexactly as it was before the removal — everyTest/Core.tsAPI it uses (toEffect,run,scratchStack,withProviders,deploy,destroy) is unchanged, so no porting was needed@effect/vitesttodependenciesandvitesttodevDependencies(bothcatalog:, same sections as before)./Test/Vitestexport entry matching./Test/Bun/./Test/Http(previously only reachable via the./*wildcard)Verified with
bun tsc -band a vitest smoke run exercisingTest.make/beforeAll/test/test.skip/test.skipIf:The internal suite stays on alchemy-test;
vitest.config.tsis intentionally not restored — consumers bring their own vitest config.🤖 Generated with Claude Code