Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions __e2e__/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`shows up help information without passing in any args 1`] = `
"Usage: bin [options] [command] <command>

Options:
--version Print CLI version
--verbose Increase logging verbosity
-h, --help output usage information

Commands:
init [options] <projectName> Initialize a new React Native project named <projectName> in a directory of the same name."
`;
16 changes: 16 additions & 0 deletions __e2e__/default.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {run, getTempDirectory, cleanup, writeFiles} from '../jest/helpers';

const DIR = getTempDirectory('test_default_behavior');

beforeEach(() => {
cleanup(DIR);
writeFiles(DIR, {});
});
afterEach(() => {
cleanup(DIR);
});

test('shows up help information without passing in any args', () => {
const {stdout} = run(DIR);
expect(stdout).toMatchSnapshot();
});