Skip to content

Commit

Permalink
Better debugging when cli test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjoar committed Jun 19, 2017
1 parent f8e333b commit d617424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`displays help 1`] = `
"Usage: bin/kibana [options]
Object {
"status": 0,
"stderr": "",
"stdout": "Usage: bin/kibana [options]
Kibana is an open source (Apache Licensed), browser-based analytics and search
dashboard for Elasticsearch.
Expand Down Expand Up @@ -30,5 +33,6 @@ Options:
Documentation: https://elastic.co/kibana
"
",
}
`;
4 changes: 2 additions & 2 deletions platform/integration_tests/__tests__/cli.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { pick } from 'lodash';
import { runCli } from '../runCli';

test('displays help', () => {
const result = runCli('.', ['--help']);
expect(result.status).toBe(0);
expect(result.stdout).toMatchSnapshot();
expect(pick(result, ['stdout', 'stderr', 'status'])).toMatchSnapshot();
});

0 comments on commit d617424

Please sign in to comment.