Skip to content

Commit

Permalink
fix tail (#452)
Browse files Browse the repository at this point in the history
* fix tail

* made dot
  • Loading branch information
timbrinded authored Dec 5, 2024
1 parent 2b0afd6 commit f91f797
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 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
2 changes: 1 addition & 1 deletion packages/cli/src/cmds/components/LogViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const LogViewer: React.FC<LogViewerProps> = ({
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]);
Expand Down
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 f91f797

Please sign in to comment.