test: more reliable tests

This commit is contained in:
Zoltan Kochan
2020-05-10 00:11:26 +03:00
parent 3f73eaf0c7
commit ab662e604f
2 changed files with 4 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ test('prune removes dev dependencies', async (t) => {
...DEFAULT_OPTIONS,
dir: process.cwd(),
linkWorkspacePackages: true,
storeDir,
})
await prune.handler({

View File

@@ -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(),
})