renovate/test/workers/repository/process/extract-update.spec.js
Rhys Arkins ecdcd9df4f
feat: refactor dependency extraction (#1912)
Rewrite of dependency extraction, particularly for npm. Paves way for easier addition of new package managers.

Closes #1882
2018-05-09 08:03:59 +02:00

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);
});
});
});