mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
ecdcd9df4f
Rewrite of dependency extraction, particularly for npm. Paves way for easier addition of new package managers. Closes #1882
23 lines
804 B
JavaScript
23 lines
804 B
JavaScript
const {
|
|
extractAndUpdate,
|
|
} = require('../../../../lib/workers/repository/process/extract-update');
|
|
const branchify = require('../../../../lib/workers/repository/updates/branchify');
|
|
|
|
jest.mock('../../../../lib/workers/repository/process/write');
|
|
jest.mock('../../../../lib/workers/repository/process/sort');
|
|
jest.mock('../../../../lib/workers/repository/process/fetch');
|
|
jest.mock('../../../../lib/workers/repository/updates/branchify');
|
|
jest.mock('../../../../lib/workers/repository/extract');
|
|
|
|
branchify.branchifyUpgrades.mockReturnValueOnce({});
|
|
|
|
describe('workers/repository/process/extract-update', () => {
|
|
describe('extractAndUpdate()', () => {
|
|
it('runs', async () => {
|
|
const config = {
|
|
repoIsOnboarded: true,
|
|
};
|
|
await extractAndUpdate(config);
|
|
});
|
|
});
|
|
});
|