Skip to content

Commit

Permalink
rename error-config.ts & error-config.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Ladzaretti committed May 17, 2023
1 parent dc077f3 commit be926de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -3,7 +3,7 @@ import { RenovateConfig, getConfig, platform } from '../../../test/util';
import { GlobalConfig } from '../../config/global';
import { CONFIG_VALIDATION } from '../../constants/error-messages';
import type { Pr } from '../../modules/platform';
import { raiseConfigWarningIssue } from './error-config';
import { raiseConfigWarningIssue } from './error-issue';

jest.mock('../../modules/platform');

Expand All @@ -14,7 +14,7 @@ beforeEach(() => {
config = getConfig();
});

describe('workers/repository/error-config', () => {
describe('workers/repository/error-issue', () => {
describe('raiseConfigWarningIssue()', () => {
beforeEach(() => {
GlobalConfig.reset();
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/workers/repository/error.spec.ts
Expand Up @@ -30,7 +30,7 @@ import {
import { ExternalHostError } from '../../types/errors/external-host-error';
import handleError from './error';

jest.mock('./error-config');
jest.mock('./error-issue');

let config: RenovateConfig;

Expand Down
2 changes: 1 addition & 1 deletion lib/workers/repository/error.ts
Expand Up @@ -33,7 +33,7 @@ import {
} from '../../constants/error-messages';
import { logger } from '../../logger';
import { ExternalHostError } from '../../types/errors/external-host-error';
import { raiseConfigWarningIssue } from './error-config';
import { raiseConfigWarningIssue } from './error-issue';

export default async function handleError(
config: RenovateConfig,
Expand Down

0 comments on commit be926de

Please sign in to comment.