Skip to content

Commit

Permalink
fix(front-end): dev test
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomuso committed Jan 20, 2023
1 parent b16d7b6 commit 810c9e2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/gitlab/dev/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ createDevApp()
api: GitlabCIApiRef,
deps: { configApi: configApiRef, discoveryApi: discoveryApiRef },
factory: ({ configApi }) => {
const cli = new GitlabCIClient({
const cli = GitlabCIClient.setupAPI({
discoveryApi: {
getBaseUrl: () => Promise.resolve('https://gitlab.com'),
},
proxyPath: configApi.getOptionalString('gitlab.proxyPath'),
codeOwnersPath: configApi.getOptionalString(
'gitlab.defaultCodeOwnersPath'
),
});
}).build(0);

// Here we mock the client requests to GitLab
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand All @@ -35,7 +34,9 @@ createDevApp()
];
return response || null;
};
return cli;
return {
build: (gitlabInstance: string) => cli,
};
},
})
.addPage({
Expand Down

0 comments on commit 810c9e2

Please sign in to comment.