Skip to content

Commit

Permalink
add a smoke test for require in non-repl mode (#2217)
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb authored Oct 16, 2024
1 parent 4eccc32 commit 9d29def
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/cli-repl/src/smoke-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down

0 comments on commit 9d29def

Please sign in to comment.