Skip to content

test-server.ts should not be exported from ai/test #8469

@mydea

Description

@mydea

Description

If you import from ai/test, you get some nice test utils to test the ai package.

However, this seems to re-export from test-server.ts which seems to me as if it was an actual test, not a test util? This breaks somehow in our library now because it complains about the msw dependency and vitest not being setup etc 🤔 Is this exported here: https://github.com/vercel/ai/blob/37ae9e715502bcddaaecf46c06bc89614b8051ee/packages/provider-utils/src/test/index.ts on purpose?

AI SDK Version

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions