Skip to content

Commit

Permalink
added a broken test for #2263 (#2473)
Browse files Browse the repository at this point in the history
  • Loading branch information
bestander authored Jan 17, 2017
1 parent 97c4583 commit 5289157
Show file tree
Hide file tree
Showing 3 changed files with 2,351 additions and 0 deletions.
10 changes: 10 additions & 0 deletions __tests__/commands/install/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -791,3 +791,13 @@ test.concurrent('a subdependency of an optional dependency that fails should be
assert.equal(await fs.exists(path.join(config.cwd, 'node_modules', 'sub-dep')), true);
});
});

// disabled while fix is not merged
test.skip('should not lose dependencies when installing with --production',
(): Promise<void> => {
// revealed https://github.com/yarnpkg/yarn/issues/2263
return runInstall({production: true}, 'prod-should-keep-subdeps', async (config) => {
assert.equal(await getPackageVersion(config,
'gulp/vinyl-fs/glob-stream/minimatch/brace-expansion/balanced-match'), '0.42.0');
});
});
10 changes: 10 additions & 0 deletions __tests__/fixtures/install/prod-should-keep-subdeps/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"dependencies": {
"gulp": "3.9.1"
},
"devDependencies": {
"eslint": ">=3.3.0",
"eslint-plugin-react": "3.5.1",
"stylelint": "^7"
}
}
Loading

0 comments on commit 5289157

Please sign in to comment.