mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
test: fix coveralls coverage
This commit is contained in:
parent
edb4c0abfe
commit
7f652315a3
3 changed files with 12 additions and 22 deletions
|
@ -42,7 +42,7 @@ exports[`config/presets/local getPreset() forwards to github 1`] = `
|
|||
Array [
|
||||
Array [
|
||||
"some/repo",
|
||||
"",
|
||||
"default",
|
||||
Object {
|
||||
"platform": "github",
|
||||
},
|
||||
|
|
|
@ -42,7 +42,7 @@ describe('config/presets/local', () => {
|
|||
});
|
||||
|
||||
it('forwards to github', async () => {
|
||||
const content = await local.getPreset('some/repo', '', {
|
||||
const content = await local.getPreset('some/repo', undefined, {
|
||||
platform: 'github',
|
||||
});
|
||||
expect(githubGetPreset.mock.calls).toMatchSnapshot();
|
||||
|
|
|
@ -126,12 +126,9 @@ export async function generateLockFile(
|
|||
cwd,
|
||||
env,
|
||||
});
|
||||
stdout += updateRes.stdout
|
||||
? /* istanbul ignore next */ updateRes.stdout
|
||||
: '';
|
||||
stderr += updateRes.stderr
|
||||
? /* istanbul ignore next */ updateRes.stderr
|
||||
: '';
|
||||
// istanbul ignore next
|
||||
stdout += updateRes.stdout || '';
|
||||
stderr += updateRes.stderr || '';
|
||||
}
|
||||
|
||||
if (yarnMajorVersion < 2) {
|
||||
|
@ -146,12 +143,9 @@ export async function generateLockFile(
|
|||
cwd,
|
||||
env,
|
||||
});
|
||||
stdout += dedupeRes.stdout
|
||||
? /* istanbul ignore next */ dedupeRes.stdout
|
||||
: '';
|
||||
stderr += dedupeRes.stderr
|
||||
? /* istanbul ignore next */ dedupeRes.stderr
|
||||
: '';
|
||||
// istanbul ignore next
|
||||
stdout += dedupeRes.stdout || '';
|
||||
stderr += dedupeRes.stderr || '';
|
||||
}
|
||||
if (
|
||||
config.postUpdateOptions &&
|
||||
|
@ -164,17 +158,13 @@ export async function generateLockFile(
|
|||
cwd,
|
||||
env,
|
||||
});
|
||||
stdout += dedupeRes.stdout
|
||||
? /* istanbul ignore next */ dedupeRes.stdout
|
||||
: '';
|
||||
stderr += dedupeRes.stderr
|
||||
? /* istanbul ignore next */ dedupeRes.stderr
|
||||
: '';
|
||||
// istanbul ignore next
|
||||
stdout += dedupeRes.stdout || '';
|
||||
stderr += dedupeRes.stderr || '';
|
||||
}
|
||||
} else if (
|
||||
config.postUpdateOptions &&
|
||||
(config.postUpdateOptions.includes('yarnDedupeFewer') ||
|
||||
config.postUpdateOptions.includes('yarnDedupeHighest'))
|
||||
config.postUpdateOptions.some((option) => option.startsWith('yarnDedupe'))
|
||||
) {
|
||||
logger.warn('yarn-deduplicate is not supported since yarn 2');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue