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
Test(Server): Test assistant service #8365
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit f52db31. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
packages/amplication-server/src/core/assistant/assistant.service.spec.ts
Outdated
Show resolved
Hide resolved
expect(service).toBeDefined(); | ||
}); | ||
|
||
it("should throw an AmplicationError if AI-powered features are disabled for the workspace", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests looks really good. I'd suggest to add an additional test to cover our expectation on errors from the openai sdk exception
i.e.
should throw an AmplicationError if unexpected issues are returned from the Ai integration
Close: #8307
PR Details
PR Checklist
npm test
doesn't throw any errorIMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.