cli: inline removed test util

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-02-10 10:48:37 +01:00
parent 0133a6edcb
commit 3d7595b70f
@@ -21,7 +21,6 @@ import * as run from '../../lib/run';
import migrate from './migrate';
import { withLogCollector } from '@backstage/test-utils';
import fs from 'fs-extra';
import { expectLogsToMatch } from '../../lib/new/execution/testUtils';
// Remove log coloring to simplify log matching
jest.mock('chalk', () => ({
@@ -52,6 +51,10 @@ jest.mock('../../lib/run', () => {
};
});
function expectLogsToMatch(recievedLogs: String[], expected: String[]): void {
expect(recievedLogs.filter(Boolean).sort()).toEqual(expected.sort());
}
describe('versions:migrate', () => {
mockDir = createMockDirectory();