mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 21:48:32 +00:00
016e647390
Changes `rangeStrategy` default value from `'replace'` to `'auto'`. Also changes `auto` behavior so that `update-lockfile` is preferred if the manager supports the `updateLockedDependency()` function. Closes #19800 BREAKING CHANGE: Renovate will now default to updating locked dependency versions. To revert to previous behavior, configure rangeStrategy=replace.
15 lines
467 B
TypeScript
15 lines
467 B
TypeScript
import type { RangeConfig } from '../types';
|
|
import { getRangeStrategy } from '.';
|
|
|
|
describe('modules/manager/circleci/range', () => {
|
|
it('returns same if not auto', () => {
|
|
const config: RangeConfig = { rangeStrategy: 'widen' };
|
|
expect(getRangeStrategy(config)).toBe('widen');
|
|
});
|
|
|
|
it('defaults to bump', () => {
|
|
const config: RangeConfig = { rangeStrategy: 'auto', depType: 'require' };
|
|
expect(getRangeStrategy(config)).toBe('pin');
|
|
});
|
|
});
|