Skip to content

Commit

Permalink
test: add integration test for renaming scoped packages (#4921)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambroos authored and Gudahtt committed Oct 10, 2018
1 parent 276720b commit 86888e1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions __tests__/commands/install/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,10 @@ test('install renamed packages', () =>

const json2 = await fs.readJson(path.join(dir, 'left-pad2', 'package.json'));
expect(json2.version).toEqual('1.1.0');

const json3 = await fs.readJson(path.join(dir, 'unscoped-turf-helpers', 'package.json'));
expect(json3.version).toEqual('3.0.16');
expect(json3.name).toEqual('@turf/helpers');
}));

test('install from git cache', () =>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"dependencies": {
"left-pad": "npm:left-pad@1.0.0",
"left-pad2": "npm:left-pad@1.1.0"
"left-pad2": "npm:left-pad@1.1.0",
"unscoped-turf-helpers": "npm:@turf/helpers@3.0.16"
}
}
3 changes: 3 additions & 0 deletions __tests__/fixtures/install/install-renamed-packages/yarn.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@turf/helpers@3.0.16":
version "3.0.16"
resolved helpers-3.0.16.tgz#450adf252738358847ce0359030412b0b421a877
"left-pad@npm:left-pad@1.0.0":
version "1.0.0"
resolved left-pad-1.0.0.tgz#c84e2417581bbb8eaf2b9e3d7a122e572ab1af37
Expand Down

0 comments on commit 86888e1

Please sign in to comment.