Skip to content

Add tests#14

Open
micrusa wants to merge 4 commits into
sanboxfrom
feat/tests
Open

Add tests#14
micrusa wants to merge 4 commits into
sanboxfrom
feat/tests

Conversation

@micrusa

@micrusa micrusa commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Added e2e tests for utils and unit test for AI.

  • Utils: ensures all endpoints work correctly. Tests OAS Spec returns expected result for all possible combinations of specFile / spec configurations

To test it:

  • npm run build, to build the test servers
  • npm test, to run the test suite

@motero2k motero2k left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Utils tests must be written like the other test files. BeforeAll should be called once.

@micrusa

micrusa commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author
  • Fixed recreating the server for each test by using an unit test instead, which makes more sense for utils
  • Added negative tests for edge cases in auth: incorrect payload types, different jwt secrets and expired tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants