Skip to content

Commit

Permalink
fixtures: Update repositories fixture based on the API generated code
Browse files Browse the repository at this point in the history
This updates the type of `testingRepos` fixtures from `ApiRepositoryResponse[]` to `ApiRepositoryResponseRead[]`.

The new type was added automatically after bumping @rtk-query/codegen-openapi to a higher version. The difference between the types is the uuid field which is not a part of `ApiRepositoryResponse[]`.
  • Loading branch information
regexowl authored and lucasgarfield committed Jan 5, 2024
1 parent 2ae670b commit b3fade4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/fixtures/repositories.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
ApiLinks,
ApiRepositoryResponse,
ApiRepositoryResponseRead,
ApiResponseMetadata,
ListRepositoriesApiArg,
} from '../../store/contentSourcesApi';
Expand Down Expand Up @@ -55,7 +56,7 @@ const filterRepos = (args: repoArgs): ApiRepositoryResponse[] => {
return repos;
};

const testingRepos: ApiRepositoryResponse[] = [
const testingRepos: ApiRepositoryResponseRead[] = [
{
uuid: 'dbad4dfc-1547-45f8-b5af-1d7fec0476c6',
name: '13lk3',
Expand Down

0 comments on commit b3fade4

Please sign in to comment.