diff --git a/packages/cli/src/cmds/runNetwork.ts b/packages/cli/src/cmds/runNetwork.ts index e2cdfe76..5515e96d 100644 --- a/packages/cli/src/cmds/runNetwork.ts +++ b/packages/cli/src/cmds/runNetwork.ts @@ -99,7 +99,7 @@ export async function runNetworkCmd(args: RunCommandArgs) { )})` : chalk.dim("Test: NO TESTS SPECIFIED"), value: 4, - disabled: testFileDirs.length > 0 ? false : true, + disabled: !(testFileDirs.length > 0), short: "test", }, { @@ -110,7 +110,7 @@ export async function runNetworkCmd(args: RunCommandArgs) { )})` : chalk.dim("Test: NO TESTS SPECIFIED"), value: 5, - disabled: testFileDirs.length > 0 ? false : true, + disabled: !(testFileDirs.length > 0), short: "grep", }, new inquirer.Separator(), diff --git a/packages/cli/src/internal/foundations/devModeHelpers.ts b/packages/cli/src/internal/foundations/devModeHelpers.ts index 5a0e0c87..2739fd9a 100644 --- a/packages/cli/src/internal/foundations/devModeHelpers.ts +++ b/packages/cli/src/internal/foundations/devModeHelpers.ts @@ -67,12 +67,11 @@ export async function createDevBlock< ApiType extends ApiTypes, Calls extends CallType | Array>, >(context: GenericContext, options: BlockCreation, transactions?: Calls) { - const containsViem = + const containsViem = !!( (context as DevModeContext).isEthereumChain && context.viem() && (await MoonwallContext.getContext()).providers.find((prov) => prov.type === "viem") - ? true - : false; + ); const api = context.polkadotJs(); const originalBlockNumber = (await api.rpc.chain.getHeader()).number.toBigInt(); diff --git a/packages/cli/src/lib/runnerContext.ts b/packages/cli/src/lib/runnerContext.ts index 3e5383ef..99a3dbe1 100644 --- a/packages/cli/src/lib/runnerContext.ts +++ b/packages/cli/src/lib/runnerContext.ts @@ -61,6 +61,7 @@ let limiter: Bottleneck | undefined = undefined; * }, * }); */ +// biome-ignore lint/suspicious/noExportsInTest: export function describeSuite({ id: suiteId, title,