Skip to content

Commit 05f6562

Browse files
committed
Avoid lookup test on dry mode
1 parent 5ac1b5d commit 05f6562

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/cli/src/init/test/lookup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const BANNED_WFS: WebFramework[] = ["next"];
2525
*
2626
* @param dirs - Array of paths to generated app directories
2727
*/
28-
export default async function runServerAndReadUser(
28+
export default async function runServerAndLookupUser(
2929
dirs: string[],
3030
): Promise<void> {
3131
const valid = dirs.filter(Boolean);

packages/cli/src/init/test/run.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { filter, map, pipe, tap } from "@fxts/core";
1+
import { always, filter, map, pipe, tap, unless } from "@fxts/core";
22
import { optionNames } from "@optique/core";
33
import { join } from "node:path";
44
import { printMessage } from "../../utils.ts";
55
import createTestApp, { filterOptions, generateTestCases } from "./create.ts";
6-
import runServerAndReadUser from "./lookup.ts";
6+
import runServerAndLookupUser from "./lookup.ts";
77
import type { InitTestData } from "./types.ts";
88

99
export const isDryRun = <T extends { dryRun: boolean }>({ dryRun }: T) =>
@@ -21,7 +21,7 @@ export const runTests =
2121
filter(filterOptions),
2222
map(createTestApp(join(testDirPrefix, getMid(dryRun, hydRun, dry)), dry)),
2323
Array.fromAsync<string>,
24-
runServerAndReadUser,
24+
unless(always(dry), runServerAndLookupUser),
2525
);
2626

2727
const printStartMessage: <T>(t: T) => T = tap(

0 commit comments

Comments
 (0)