refactor: apply review suggestions

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-08-21 11:48:49 +02:00
parent 33ebb28942
commit 997998e0e0
6 changed files with 4 additions and 7 deletions
@@ -16,6 +16,7 @@
import { Entity } from '@backstage/catalog-model';
import { Writable } from 'stream';
import { Logger } from 'winston';
import { ParsedLocationAnnotation } from '../../helpers';
import { LoggerService } from '@backstage/backend-plugin-api';
import { TechDocsContainerRunner } from '../publish/types';
@@ -65,7 +66,7 @@ export type GeneratorRunOptions = {
outputDir: string;
parsedLocationAnnotation?: ParsedLocationAnnotation;
etag?: string;
logger: LoggerService;
logger: Logger;
logStream?: Writable;
siteOptions?: { name?: string };
runAsDefaultUser?: boolean;
@@ -224,7 +224,6 @@ const getEntityRootDir = (entity: Entity) => {
};
const logger = mockServices.logger.mock();
jest.spyOn(logger, 'error');
const createPublisherFromConfig = ({
accountName = 'accountName',
@@ -139,8 +139,6 @@ const getEntityRootDir = (entity: Entity) => {
};
const logger = mockServices.logger.mock();
jest.spyOn(logger, 'info');
jest.spyOn(logger, 'error');
const createPublisherFromConfig = ({
bucketName = 'bucketName',