Skip to content

Commit 2e38ed6

Browse files
morinokamiclaude
andcommitted
docs(email): import test APIs from vite-plus/test
The Testing guide imports test APIs from `vite-plus/test`, the Vite+ toolchain's entry for Vitest, and names `vitest` for the Vite toolchain. The email testing examples still imported from `vitest`, which TypeScript cannot resolve in a pnpm-installed Vite+ app that does not install Vitest directly. Import from `vite-plus/test` there too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f6902af commit 2e38ed6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/guide/email/receiving.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Test inbound handlers locally with `createInboundTestHarness` below.
105105
Use `createInboundTestHarness` to capture replies, forwards, and rejections. For shared platform mail, pass the full address including the project prefix, such as `acme+support+abc-123@acme.dev`. For direct Cloudflare mail, set `slug: null` and use `support+abc-123@mail.acme.com`.
106106

107107
```ts
108-
import { describe, it, expect } from 'vitest';
108+
import { describe, it, expect } from 'vite-plus/test';
109109
import { createInboundTestHarness } from 'void/email/testing';
110110
import defaultHandler from './email/_default';
111111
import support from './email/support+[ticket]';

‎docs/guide/email/sending.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Remove the deprecated `sendInDev` option to use the local inbox. Deploy the app
232232
Use the test harness to assert on outgoing messages without mocking the binding:
233233

234234
```ts
235-
import { describe, it, expect } from 'vitest';
235+
import { describe, it, expect } from 'vite-plus/test';
236236
import { sendEmail } from 'void/email';
237237
import { createEmailTestHarness } from 'void/email/testing';
238238

0 commit comments

Comments
 (0)