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

chore: model test refactor, models improvements, mock cleanup #405

Merged
merged 5 commits into from
Jan 12, 2024

Conversation

Tlacenka
Copy link
Collaborator

@Tlacenka Tlacenka commented Jan 11, 2024

Closes #143, #276, #254

This is the second part of models refactor:

  • I finished cleaning up models tests.
  • I migrated mocks to testing-utils.
  • I fixed models - plugins cannot be empty, missing reference correctly throws for empty audits array, packageName and version is correctly required.
  • Require slug for project and organization in upload configuration (otherwise the string is rejected by GraphQL).

Copy link
Collaborator

@matejchalk matejchalk left a comment

Choose a reason for hiding this comment

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

Looks good 👍

packages/models/src/lib/upload-config.ts Outdated Show resolved Hide resolved
@Tlacenka Tlacenka merged commit a38f520 into main Jan 12, 2024
18 checks passed
@Tlacenka Tlacenka deleted the models-test-refactor-vol2 branch January 12, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants