Skip to content
Snippets Groups Projects
Commit 7f652315 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

test: fix coveralls coverage

parent edb4c0ab
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ exports[`config/presets/local getPreset() forwards to github 1`] = ` ...@@ -42,7 +42,7 @@ exports[`config/presets/local getPreset() forwards to github 1`] = `
Array [ Array [
Array [ Array [
"some/repo", "some/repo",
"", "default",
Object { Object {
"platform": "github", "platform": "github",
}, },
......
...@@ -42,7 +42,7 @@ describe('config/presets/local', () => { ...@@ -42,7 +42,7 @@ describe('config/presets/local', () => {
}); });
it('forwards to github', async () => { it('forwards to github', async () => {
const content = await local.getPreset('some/repo', '', { const content = await local.getPreset('some/repo', undefined, {
platform: 'github', platform: 'github',
}); });
expect(githubGetPreset.mock.calls).toMatchSnapshot(); expect(githubGetPreset.mock.calls).toMatchSnapshot();
......
...@@ -126,12 +126,9 @@ export async function generateLockFile( ...@@ -126,12 +126,9 @@ export async function generateLockFile(
cwd, cwd,
env, env,
}); });
stdout += updateRes.stdout // istanbul ignore next
? /* istanbul ignore next */ updateRes.stdout stdout += updateRes.stdout || '';
: ''; stderr += updateRes.stderr || '';
stderr += updateRes.stderr
? /* istanbul ignore next */ updateRes.stderr
: '';
} }
if (yarnMajorVersion < 2) { if (yarnMajorVersion < 2) {
...@@ -146,12 +143,9 @@ export async function generateLockFile( ...@@ -146,12 +143,9 @@ export async function generateLockFile(
cwd, cwd,
env, env,
}); });
stdout += dedupeRes.stdout // istanbul ignore next
? /* istanbul ignore next */ dedupeRes.stdout stdout += dedupeRes.stdout || '';
: ''; stderr += dedupeRes.stderr || '';
stderr += dedupeRes.stderr
? /* istanbul ignore next */ dedupeRes.stderr
: '';
} }
if ( if (
config.postUpdateOptions && config.postUpdateOptions &&
...@@ -164,17 +158,13 @@ export async function generateLockFile( ...@@ -164,17 +158,13 @@ export async function generateLockFile(
cwd, cwd,
env, env,
}); });
stdout += dedupeRes.stdout // istanbul ignore next
? /* istanbul ignore next */ dedupeRes.stdout stdout += dedupeRes.stdout || '';
: ''; stderr += dedupeRes.stderr || '';
stderr += dedupeRes.stderr
? /* istanbul ignore next */ dedupeRes.stderr
: '';
} }
} else if ( } else if (
config.postUpdateOptions && config.postUpdateOptions &&
(config.postUpdateOptions.includes('yarnDedupeFewer') || config.postUpdateOptions.some((option) => option.startsWith('yarnDedupe'))
config.postUpdateOptions.includes('yarnDedupeHighest'))
) { ) {
logger.warn('yarn-deduplicate is not supported since yarn 2'); logger.warn('yarn-deduplicate is not supported since yarn 2');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment