Improve --typechecked
help text
#787
266 tests run, 253 passed, 0 skipped, 13 failed.
Annotations
Check failure on line 137 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Shows a clear error to the user if something is already running on the desired port.
expected '\u001b[0mfauna local\u001b[0m\n\u001b…' to include '[StartContainer] The hostPort \'8443\…'
Raw output
AssertionError: expected '\u001b[0mfauna local\u001b[0m\n\u001b…' to include '[StartContainer] The hostPort \'8443\…'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:137:24)
Check failure on line 322 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Does not create a database when not requested to do so
--typechecked can only be set if --database is set.
Raw output
Error: --typechecked can only be set if --database is set.
at file:///home/runner/work/fauna-shell/fauna-shell/src/commands/local.mjs:212:15
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:180:24
at maybeAsyncResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/utils/maybe-async-result.js:6:48)
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:179:20
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/middleware.js:82:28
at Array.reduce (<anonymous>)
at applyMiddleware (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/middleware.js:67:24)
at CommandInstance.handleValidationAndGetResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:204:25)
at CommandInstance.applyMiddlewareAndGetResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:245:20)
at CommandInstance.runCommand (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:128:20)
at [runYargsParserAndExecuteCommands] (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:1386:105)
at YargsInstance.parse (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:707:63)
at YargsInstance.parseAsync (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:737:35)
at parseYargs (file:///home/runner/work/fauna-shell/fauna-shell/src/cli.mjs:65:21)
at Function.invoke (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/sinon/pkg/sinon-esm.js:2551:47)
at parseYargs (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/sinon/pkg/sinon-esm.js:2861:26)
at run (file:///home/runner/work/fauna-shell/fauna-shell/src/cli.mjs:52:11)
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:322:11)
Check failure on line 328 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Creates and starts a container when none exists
--typechecked can only be set if --database is set.
Raw output
Error: --typechecked can only be set if --database is set.
at file:///home/runner/work/fauna-shell/fauna-shell/src/commands/local.mjs:212:15
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:180:24
at maybeAsyncResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/utils/maybe-async-result.js:6:48)
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:179:20
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/middleware.js:82:28
at Array.reduce (<anonymous>)
at applyMiddleware (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/middleware.js:67:24)
at CommandInstance.handleValidationAndGetResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:204:25)
at CommandInstance.applyMiddlewareAndGetResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:245:20)
at CommandInstance.runCommand (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:128:20)
at [runYargsParserAndExecuteCommands] (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:1386:105)
at YargsInstance.parse (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:707:63)
at YargsInstance.parseAsync (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:737:35)
at parseYargs (file:///home/runner/work/fauna-shell/fauna-shell/src/cli.mjs:65:21)
at Function.invoke (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/sinon/pkg/sinon-esm.js:2551:47)
at parseYargs (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/sinon/pkg/sinon-esm.js:2861:26)
at run (file:///home/runner/work/fauna-shell/fauna-shell/src/cli.mjs:52:11)
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:328:11)
Check failure on line 359 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command The user can control the hostIp, hostPort, containerPort, and name
--typechecked can only be set if --database is set.
Raw output
Error: --typechecked can only be set if --database is set.
at file:///home/runner/work/fauna-shell/fauna-shell/src/commands/local.mjs:212:15
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:180:24
at maybeAsyncResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/utils/maybe-async-result.js:6:48)
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:179:20
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/middleware.js:82:28
at Array.reduce (<anonymous>)
at applyMiddleware (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/middleware.js:67:24)
at CommandInstance.handleValidationAndGetResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:204:25)
at CommandInstance.applyMiddlewareAndGetResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:245:20)
at CommandInstance.runCommand (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:128:20)
at [runYargsParserAndExecuteCommands] (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:1386:105)
at YargsInstance.parse (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:707:63)
at YargsInstance.parseAsync (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:737:35)
at parseYargs (file:///home/runner/work/fauna-shell/fauna-shell/src/cli.mjs:65:21)
at Function.invoke (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/sinon/pkg/sinon-esm.js:2551:47)
at parseYargs (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/sinon/pkg/sinon-esm.js:2861:26)
at run (file:///home/runner/work/fauna-shell/fauna-shell/src/cli.mjs:52:11)
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:359:11)
Check failure on line 385 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Skips pull if --pull is false.
--typechecked can only be set if --database is set.
Raw output
Error: --typechecked can only be set if --database is set.
at file:///home/runner/work/fauna-shell/fauna-shell/src/commands/local.mjs:212:15
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:180:24
at maybeAsyncResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/utils/maybe-async-result.js:6:48)
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:179:20
at file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/middleware.js:82:28
at Array.reduce (<anonymous>)
at applyMiddleware (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/middleware.js:67:24)
at CommandInstance.handleValidationAndGetResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:204:25)
at CommandInstance.applyMiddlewareAndGetResult (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:245:20)
at CommandInstance.runCommand (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/command.js:128:20)
at [runYargsParserAndExecuteCommands] (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:1386:105)
at YargsInstance.parse (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:707:63)
at YargsInstance.parseAsync (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/yargs/build/lib/yargs-factory.js:737:35)
at parseYargs (file:///home/runner/work/fauna-shell/fauna-shell/src/cli.mjs:65:21)
at Function.invoke (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/sinon/pkg/sinon-esm.js:2551:47)
at parseYargs (file:///home/runner/work/fauna-shell/fauna-shell/node_modules/sinon/pkg/sinon-esm.js:2861:26)
at run (file:///home/runner/work/fauna-shell/fauna-shell/src/cli.mjs:52:11)
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:385:11)
Check failure on line 402 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Fails start with a prompt to contact Fauna if pull fails.
expected stub to have been called at least once, but it was never called
Raw output
AssertionError: expected stub to have been called at least once, but it was never called
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:402:37)
Check failure on line 425 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Throws an error if the health check fails
expected '\u001b[0mfauna local\u001b[0m\n\u001b…' to include 'with HTTP status: \'503\''
Raw output
AssertionError: expected '\u001b[0mfauna local\u001b[0m\n\u001b…' to include 'with HTTP status: \'503\''
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:425:24)
Check failure on line 460 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command exits if a container cannot be started
expected '\u001b[0mfauna local\u001b[0m\n\u001b…' to include '[StartContainer] Container \'faunadb\…'
Raw output
AssertionError: expected '\u001b[0mfauna local\u001b[0m\n\u001b…' to include '[StartContainer] Container \'faunadb\…'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:460:24)
Check failure on line 566 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Ensures a container in state 'paused' becomes running and available.
expected 'paused' to equal 'dead'
Raw output
AssertionError: expected 'paused' to equal 'dead'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:566:31)
+ expected - actual
-paused
+dead
Check failure on line 566 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Ensures a container in state 'created' becomes running and available.
expected 'created' to equal 'dead'
Raw output
AssertionError: expected 'created' to equal 'dead'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:566:31)
+ expected - actual
-created
+dead
Check failure on line 566 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Ensures a container in state 'exited' becomes running and available.
expected 'exited' to equal 'dead'
Raw output
AssertionError: expected 'exited' to equal 'dead'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:566:31)
+ expected - actual
-exited
+dead
Check failure on line 566 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command Ensures a container in state 'running' becomes running and available.
expected 'running' to equal 'dead'
Raw output
AssertionError: expected 'running' to equal 'dead'
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:566:31)
+ expected - actual
-running
+dead
Check failure on line 621 in test/local.mjs
github-actions / JUnit Test Report
/home/runner/work/fauna-shell/fauna-shell/test/local.mjs.local command should throw if container exists with same name but different port
expected stub to have been called with arguments { all: true, filters: '{"name":["faunadb"]}' }
Raw output
AssertionError: expected stub to have been called with arguments { all: true, filters: '{"name":["faunadb"]}' }
at Context.<anonymous> (file:///home/runner/work/fauna-shell/fauna-shell/test/local.mjs:621:48)