Skip to content

Commit

Permalink
add a smoke test for require in non-repl mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Oct 14, 2024
1 parent facadf8 commit c0a744c
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 c0a744c

Please sign in to comment.