test(up): start writing some tests for the "up" command

This commit is contained in:
Joakim Carlstein 2023-12-07 10:48:02 +01:00
parent de5fccfa52
commit 43a220d633
5 changed files with 244 additions and 12 deletions

View file

@ -71,7 +71,7 @@ Examples:
try {
const { default: upCommand } = await import('./commands/up.js');
await upCommand({ storage, reporter, directory, plugins, dry });
process.exitCode = await upCommand({ storage, reporter, directory, plugins, dry });
} catch (error) {
if (error instanceof ShowUsageError) {
console.error(error.message, '\n');
@ -359,4 +359,6 @@ try {
} else {
console.error(error);
}
process.exitCode = 1;
}