From 9d29def497e1915e1db1cf461fa0881711300e75 Mon Sep 17 00:00:00 2001 From: Le Roux Bodenstein Date: Wed, 16 Oct 2024 14:57:52 +0100 Subject: [PATCH] add a smoke test for require in non-repl mode (#2217) --- packages/cli-repl/src/smoke-tests.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/cli-repl/src/smoke-tests.ts b/packages/cli-repl/src/smoke-tests.ts index 22fe82155..559f7f0dc 100644 --- a/packages/cli-repl/src/smoke-tests.ts +++ b/packages/cli-repl/src/smoke-tests.ts @@ -150,6 +150,15 @@ export async function runSmokeTests({ perfTestIterations: 20, tags: ['startup'], }, + { + name: 'eval_nodb_require', + input: '', + output: /foobar/, + includeStderr: false, + testArgs: ['--nodb', '--eval', 'require("util").format("%sbar", "foo")'], + exitCode: 0, + perfTestIterations: 0, + }, { name: 'mongosh_version', input: '',