From ab662e604f99c87856f994934dd2ee6df58d3ecc Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sun, 10 May 2020 00:11:26 +0300 Subject: [PATCH] test: more reliable tests --- packages/plugin-commands-installation/test/prune.ts | 1 + .../plugin-commands-installation/test/update/interactive.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/plugin-commands-installation/test/prune.ts b/packages/plugin-commands-installation/test/prune.ts index 1839cd0b96..1a0bd8e15d 100644 --- a/packages/plugin-commands-installation/test/prune.ts +++ b/packages/plugin-commands-installation/test/prune.ts @@ -63,6 +63,7 @@ test('prune removes dev dependencies', async (t) => { ...DEFAULT_OPTIONS, dir: process.cwd(), linkWorkspacePackages: true, + storeDir, }) await prune.handler({ diff --git a/packages/plugin-commands-installation/test/update/interactive.ts b/packages/plugin-commands-installation/test/update/interactive.ts index a12ccedf49..b63944884d 100644 --- a/packages/plugin-commands-installation/test/update/interactive.ts +++ b/packages/plugin-commands-installation/test/update/interactive.ts @@ -169,6 +169,7 @@ test('interactive update of dev dependencies only', async (t) => { }, }, ]) + const storeDir = path.resolve('store') prompt.returns({ updateDependencies: ['is-negative'], @@ -183,6 +184,7 @@ test('interactive update of dev dependencies only', async (t) => { lockfileDir: process.cwd(), recursive: true, selectedProjectsGraph, + storeDir, workspaceDir: process.cwd(), }) await update.handler({ @@ -198,6 +200,7 @@ test('interactive update of dev dependencies only', async (t) => { production: false, recursive: true, selectedProjectsGraph, + storeDir, workspaceDir: process.cwd(), })