Skip to content

Latest commit

 

History

History
59 lines (51 loc) · 2.53 KB

cli.spec.js.md

File metadata and controls

59 lines (51 loc) · 2.53 KB

Snapshot report for test/cli.spec.js

The actual snapshot is saved in cli.spec.js.snap.

Generated by AVA.

--help prints help

execution output does not match expected snapshot

{
  code: undefined,
  trimmedStderr: '',
  trimmedStdout: `endomoat <entrypoint>␊

  Run an application␊

  Positionals:␊
    entrypoint  Path to the application entry point            [string] [required]␊

  Options:␊
        --help                         Show help                         [boolean]␊
        --version                      Show version number               [boolean]␊
    -p, --policy                       Filepath to a policy file␊
                                   [string] [default: "lavamoat/node/policy.json"]␊
    -o, --policy-override, --override  Filepath to a policy override file␊
                          [string] [default: "lavamoat/node/policy-override.json"]␊
        --policy-debug, --pd           Filepath to a policy debug file␊
                             [string] [default: "lavamoat/node/policy-debug.json"]␊
        --cwd                          Path to application root directory␊
                                           [string] [default: (current directory)]`,
}

run - --help prints help

execution output does not match expected snapshot

{
  code: undefined,
  trimmedStderr: '',
  trimmedStdout: `endomoat run <entrypoint>␊

  Run an application␊

  Positionals:␊
    entrypoint  Path to the application entry point            [string] [required]␊

  Options:␊
        --help                         Show help                         [boolean]␊
        --version                      Show version number               [boolean]␊
    -p, --policy                       Filepath to a policy file␊
                                   [string] [default: "lavamoat/node/policy.json"]␊
    -o, --policy-override, --override  Filepath to a policy override file␊
                          [string] [default: "lavamoat/node/policy-override.json"]␊
        --policy-debug, --pd           Filepath to a policy debug file␊
                             [string] [default: "lavamoat/node/policy-debug.json"]␊
        --cwd                          Path to application root directory␊
                                           [string] [default: (current directory)]`,
}