From f91f797f6fb1b92357aeba485647e3fd21c24b12 Mon Sep 17 00:00:00 2001 From: Tim B <79199034+timbrinded@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:08:12 +0000 Subject: [PATCH] fix tail (#452) * fix tail * made dot --- .changeset/tame-taxis-pull.md | 5 +++++ packages/cli/src/cmds/components/LogViewer.tsx | 2 +- packages/cli/src/cmds/runTests.ts | 11 ++--------- 3 files changed, 8 insertions(+), 10 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/components/LogViewer.tsx b/packages/cli/src/cmds/components/LogViewer.tsx index 02368128..4755f780 100644 --- a/packages/cli/src/cmds/components/LogViewer.tsx +++ b/packages/cli/src/cmds/components/LogViewer.tsx @@ -98,7 +98,7 @@ export const LogViewer: React.FC = ({ silent: false, subDirectory: process.env.MOON_SUBDIR, outputFile: tmpFile, - reporters: ['basic', 'json'], + reporters: ['dot', 'json'], onConsoleLog: (log) => { if (!log.includes("has multiple versions, ensure that there is only one installed.")) { setTestOutput(prev => [...prev, log]); 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("=");