Skip to content

Commit

Permalink
fix tail
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Dec 5, 2024
1 parent 2b0afd6 commit 0361533
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-taxis-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonwall/cli": patch
---

fix tail
11 changes: 2 additions & 9 deletions packages/cli/src/cmds/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export type testRunArgs = {
vitestPassthroughArgs?: string[];
};

export async function executeTests(env: Environment, testRunArgs?: testRunArgs) {
export async function executeTests(env: Environment, testRunArgs?: testRunArgs & UserConfig) {
return new Promise<Vitest>(async (resolve, reject) => {
const globalConfig = await importAsyncConfig();
if (env.foundation.type === "read_only") {
Expand Down Expand Up @@ -93,14 +93,7 @@ export async function executeTests(env: Environment, testRunArgs?: testRunArgs)
}
}

const additionalArgs: Omit<testRunArgs, "vitestPassthroughArgs"> = testRunArgs
? {
testNamePattern: testRunArgs.testNamePattern,
subDirectory: testRunArgs.subDirectory,
shard: testRunArgs.shard,
update: testRunArgs.update,
}
: {};
const additionalArgs = { ...testRunArgs };

const vitestOptions = testRunArgs?.vitestPassthroughArgs?.reduce<UserConfig>((acc, arg) => {
const [key, value] = arg.split("=");
Expand Down

0 comments on commit 0361533

Please sign in to comment.