Modify tests to include new config param in LocalPublish
This commit is contained in:
@@ -53,7 +53,7 @@ export async function startStandaloneServer(
|
||||
const techdocsGenerator = new TechdocsGenerator(logger, config);
|
||||
generators.register('techdocs', techdocsGenerator);
|
||||
|
||||
const publisher = new LocalPublish(logger);
|
||||
const publisher = new LocalPublish(logger, config);
|
||||
|
||||
const dockerClient = new Docker();
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
import { getVoidLogger } from '@backstage/backend-common';
|
||||
import { ConfigReader } from '@backstage/config';
|
||||
import { LocalPublish } from './local';
|
||||
|
||||
const createMockEntity = (annotations = {}) => {
|
||||
@@ -37,7 +38,8 @@ const logger = getVoidLogger();
|
||||
|
||||
describe('local publisher', () => {
|
||||
it('should publish generated documentation dir', async () => {
|
||||
const publisher = new LocalPublish(logger);
|
||||
const testConfig = ConfigReader.fromConfigs([{ context: '', data: {} }]);
|
||||
const publisher = new LocalPublish(logger, testConfig);
|
||||
|
||||
const mockEntity = createMockEntity();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user