explanatory comment
and move the module mock to the same section as the other module mocks. Signed-off-by: Jamie Klassen <jklassen@vmware.com>
This commit is contained in:
@@ -20,8 +20,6 @@ import { Command } from 'commander';
|
||||
import { resolve as resolvePath } from 'path';
|
||||
import { paths } from '../../lib/paths';
|
||||
import * as runObj from '../../lib/run';
|
||||
|
||||
jest.mock('global-agent/bootstrap', () => {});
|
||||
import bump, { bumpBackstageJsonVersion, createVersionFinder } from './bump';
|
||||
import {
|
||||
setupRequestMockHandlers,
|
||||
@@ -33,6 +31,9 @@ import { rest } from 'msw';
|
||||
import { NotFoundError } from '@backstage/errors';
|
||||
import { Lockfile } from '../../lib/versioning/Lockfile';
|
||||
|
||||
// Avoid mutating the global http(s) agent used in other tests
|
||||
jest.mock('global-agent/bootstrap', () => {});
|
||||
|
||||
// Remove log coloring to simplify log matching
|
||||
jest.mock('chalk', () => ({
|
||||
red: (str: string) => str,
|
||||
|
||||
Reference in New Issue
Block a user