Skip to content

Commit f91f797

Browse files
authored
fix tail (#452)
* fix tail * made dot
1 parent 2b0afd6 commit f91f797

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.changeset/tame-taxis-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@moonwall/cli": patch
3+
---
4+
5+
fix tail

packages/cli/src/cmds/components/LogViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const LogViewer: React.FC<LogViewerProps> = ({
9898
silent: false,
9999
subDirectory: process.env.MOON_SUBDIR,
100100
outputFile: tmpFile,
101-
reporters: ['basic', 'json'],
101+
reporters: ['dot', 'json'],
102102
onConsoleLog: (log) => {
103103
if (!log.includes("has multiple versions, ensure that there is only one installed.")) {
104104
setTestOutput(prev => [...prev, log]);

packages/cli/src/cmds/runTests.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type testRunArgs = {
5858
vitestPassthroughArgs?: string[];
5959
};
6060

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

96-
const additionalArgs: Omit<testRunArgs, "vitestPassthroughArgs"> = testRunArgs
97-
? {
98-
testNamePattern: testRunArgs.testNamePattern,
99-
subDirectory: testRunArgs.subDirectory,
100-
shard: testRunArgs.shard,
101-
update: testRunArgs.update,
102-
}
103-
: {};
96+
const additionalArgs = { ...testRunArgs };
10497

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

0 commit comments

Comments
 (0)