From 1b3c037699aa90087d8e31be6f8c9b385252e823 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Mon, 27 Feb 2017 15:22:08 +0000 Subject: [PATCH] added test for #2744 --- __tests__/commands/install/integration.js | 6 ++++ .../relative-symlinks-work/package.json | 5 +++ .../install/relative-symlinks-work/yarn.lock | 34 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 __tests__/fixtures/install/relative-symlinks-work/package.json create mode 100644 __tests__/fixtures/install/relative-symlinks-work/yarn.lock diff --git a/__tests__/commands/install/integration.js b/__tests__/commands/install/integration.js index 4323995d82..571155b2c0 100644 --- a/__tests__/commands/install/integration.js +++ b/__tests__/commands/install/integration.js @@ -912,3 +912,9 @@ test.concurrent('should skip integrity check and do install when --skip-integrit }); }); + +test.concurrent( + "should install if symlink source does not exist", + async (): Promise => { + await runInstall({}, 'relative-symlinks-work', () => {}); + }); diff --git a/__tests__/fixtures/install/relative-symlinks-work/package.json b/__tests__/fixtures/install/relative-symlinks-work/package.json new file mode 100644 index 0000000000..a1807a8363 --- /dev/null +++ b/__tests__/fixtures/install/relative-symlinks-work/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "ref": "https://github.com/icenium/ref/tarball/v1.3.2.3" + } +} diff --git a/__tests__/fixtures/install/relative-symlinks-work/yarn.lock b/__tests__/fixtures/install/relative-symlinks-work/yarn.lock new file mode 100644 index 0000000000..64b236bf60 --- /dev/null +++ b/__tests__/fixtures/install/relative-symlinks-work/yarn.lock @@ -0,0 +1,34 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +bindings@1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11" + +debug@2: + version "2.6.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351" + dependencies: + ms "0.7.2" + +ms@0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" + +nan@2: + version "2.5.1" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.5.1.tgz#d5b01691253326a97a2bbee9e61c55d8d60351e2" + +"prebuilt@https://github.com/tailsu/node-prebuilt/tarball/master": + version "0.1.0" + resolved "https://github.com/tailsu/node-prebuilt/tarball/master#be63229eaccee9c55bb67bc87eac527bdd640aa7" + +"ref@https://github.com/icenium/ref/tarball/v1.3.2.3": + version "1.3.2" + resolved "https://github.com/icenium/ref/tarball/v1.3.2.3#a38db0780c37c66453f3f096dc3ade802cc8ce77" + dependencies: + bindings "1" + debug "2" + nan "2" + prebuilt "https://github.com/tailsu/node-prebuilt/tarball/master"