Use void logger in test.

This commit is contained in:
Eric Peterson
2021-03-18 15:23:28 +01:00
parent 900f230291
commit c491df119f
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -23,6 +23,7 @@
"winston": "^3.2.1"
},
"devDependencies": {
"@backstage/backend-common": "0.5.6",
"@backstage/cli": "^0.6.0"
},
"files": [
@@ -14,6 +14,7 @@
* limitations under the License.
*/
import { getVoidLogger } from '@backstage/backend-common';
import {
DocumentCollator,
DocumentDecorator,
@@ -39,7 +40,7 @@ describe('IndexBuilder', () => {
let testDecorator: DocumentDecorator;
beforeEach(() => {
testIndexBuilder = new IndexBuilder();
testIndexBuilder = new IndexBuilder({ logger: getVoidLogger() });
testCollator = new TestDocumentCollator();
testDecorator = new TestDocumentDecorator();
});