Skip to content
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

Merged
merged 6 commits into from May 2, 2024

Conversation

yuval-hazaz
Copy link
Member

Close: #8307

PR Details

PR Checklist

  • Tests for the changes have been added
  • npm test doesn't throw any error

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Copy link

nx-cloud bot commented May 1, 2024

☁️ Nx Cloud Report

CI 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 target

Sent with 💌 from NxCloud.

Base automatically changed from feat/jovu-usage-limits to feat/jovu-plugins May 1, 2024 17:57
expect(service).toBeDefined();
});

it("should throw an AmplicationError if AI-powered features are disabled for the workspace", async () => {
Copy link
Contributor

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

@yuval-hazaz yuval-hazaz merged commit 63ad873 into feat/jovu-plugins May 2, 2024
9 checks passed
@yuval-hazaz yuval-hazaz deleted the test/assistant-service branch May 2, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants