From c7f0b52ed81bfd5bba2244ce4f4e6796715ebde3 Mon Sep 17 00:00:00 2001 From: timbrinded <79199034+timbrinded@users.noreply.github.com> Date: Fri, 9 Jun 2023 17:24:28 +0100 Subject: [PATCH] fixed grep weirdness --- .changeset/kind-crabs-compare.md | 6 ++++++ packages/cli/src/cmds/runNetwork.ts | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/kind-crabs-compare.md diff --git a/.changeset/kind-crabs-compare.md b/.changeset/kind-crabs-compare.md new file mode 100644 index 00000000..e30b3d9e --- /dev/null +++ b/.changeset/kind-crabs-compare.md @@ -0,0 +1,6 @@ +--- +"@moonwall/cli": patch +--- + +Fix GrepTest for Running networks +- [#144](https://github.com/Moonsong-Labs/moonwall/issues/144) diff --git a/packages/cli/src/cmds/runNetwork.ts b/packages/cli/src/cmds/runNetwork.ts index fa5f4b8e..5a28004c 100644 --- a/packages/cli/src/cmds/runNetwork.ts +++ b/packages/cli/src/cmds/runNetwork.ts @@ -155,7 +155,8 @@ export async function runNetwork(args) { case 5: await resolveGrepChoice(env); - + break; + case 6: const quit = await inquirer.prompt(questions.find(({ name }) => name == "Quit")); if (quit.Quit === true) { @@ -313,6 +314,7 @@ const resolveGrepChoice = async (env: Environment) => { message: `What pattern would you like to filter for (ID/Title): `, default: "D01T01", }); + process.env.MOON_RECYCLE = "true"; return await executeTests(env, { testNamePattern: choice.grep }); };