From 0361533eaa9516f64834032208ff3e71799df344 Mon Sep 17 00:00:00 2001 From: timbrinded <79199034+timbrinded@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:00:09 +0000 Subject: [PATCH] fix tail --- .changeset/tame-taxis-pull.md | 5 +++++ packages/cli/src/cmds/runTests.ts | 11 ++--------- 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 .changeset/tame-taxis-pull.md diff --git a/.changeset/tame-taxis-pull.md b/.changeset/tame-taxis-pull.md new file mode 100644 index 00000000..409766f3 --- /dev/null +++ b/.changeset/tame-taxis-pull.md @@ -0,0 +1,5 @@ +--- +"@moonwall/cli": patch +--- + +fix tail diff --git a/packages/cli/src/cmds/runTests.ts b/packages/cli/src/cmds/runTests.ts index 4b652ce7..4e34399e 100644 --- a/packages/cli/src/cmds/runTests.ts +++ b/packages/cli/src/cmds/runTests.ts @@ -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(async (resolve, reject) => { const globalConfig = await importAsyncConfig(); if (env.foundation.type === "read_only") { @@ -93,14 +93,7 @@ export async function executeTests(env: Environment, testRunArgs?: testRunArgs) } } - const additionalArgs: Omit = testRunArgs - ? { - testNamePattern: testRunArgs.testNamePattern, - subDirectory: testRunArgs.subDirectory, - shard: testRunArgs.shard, - update: testRunArgs.update, - } - : {}; + const additionalArgs = { ...testRunArgs }; const vitestOptions = testRunArgs?.vitestPassthroughArgs?.reduce((acc, arg) => { const [key, value] = arg.split("=");