mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
ecdcd9df4f
Rewrite of dependency extraction, particularly for npm. Paves way for easier addition of new package managers. Closes #1882
21 lines
725 B
JavaScript
21 lines
725 B
JavaScript
const { renovateRepository } = require('../../../lib/workers/repository/index');
|
|
const process = require('../../../lib/workers/repository/process');
|
|
|
|
jest.mock('../../../lib/workers/repository/init');
|
|
jest.mock('../../../lib/workers/repository/process');
|
|
jest.mock('../../../lib/workers/repository/result');
|
|
jest.mock('../../../lib/workers/repository/error');
|
|
|
|
describe('workers/repository', () => {
|
|
describe('renovateRepository()', () => {
|
|
let config;
|
|
beforeEach(() => {
|
|
config = require('../../_fixtures/config');
|
|
});
|
|
it('runs', async () => {
|
|
process.processRepo = jest.fn(() => ({}));
|
|
const res = await renovateRepository(config);
|
|
expect(res).toMatchSnapshot();
|
|
});
|
|
});
|
|
});
|