Lighthouse Backend: fix api-report, rename options and create function, remove jest from package.json

Signed-off-by: Dominik Pfaffenbauer <dominik@pfaffenbauer.at>
This commit is contained in:
Dominik Pfaffenbauer
2023-01-25 15:45:18 +01:00
parent 12ac927b75
commit 6a5aebfe04
7 changed files with 14 additions and 22 deletions
@@ -25,14 +25,18 @@ import { LighthouseRestApi } from '@backstage/plugin-lighthouse-common';
import { stringifyEntityRef } from '@backstage/catalog-model';
import { LighthouseAuditScheduleImpl } from '../config';
export interface Options {
/** @public **/
export interface CreateLighthouseSchedulerOptions {
logger: Logger;
config: Config;
scheduler?: PluginTaskScheduler;
catalogClient: CatalogClient;
}
export async function create(options: Options) {
/** @public **/
export async function createScheduler(
options: CreateLighthouseSchedulerOptions,
) {
const { logger, scheduler, catalogClient, config } = options;
const lighthouseApi = LighthouseRestApi.fromConfig(config);