fixtures: Update repositories fixture based on the API generated code

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[]`.
This commit is contained in:
regexowl 2024-01-02 10:33:20 +01:00 committed by Lucas Garfield
parent 2ae670bf35
commit b3fade4a5f

View file

@ -1,6 +1,7 @@
import {
ApiLinks,
ApiRepositoryResponse,
ApiRepositoryResponseRead,
ApiResponseMetadata,
ListRepositoriesApiArg,
} from '../../store/contentSourcesApi';
@ -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',