diff --git a/__e2e__/__snapshots__/default.test.ts.snap b/__e2e__/__snapshots__/default.test.ts.snap new file mode 100644 index 000000000..872d9a4b6 --- /dev/null +++ b/__e2e__/__snapshots__/default.test.ts.snap @@ -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] + +Options: + --version Print CLI version + --verbose Increase logging verbosity + -h, --help output usage information + +Commands: + init [options] Initialize a new React Native project named in a directory of the same name." +`; diff --git a/__e2e__/default.test.ts b/__e2e__/default.test.ts new file mode 100644 index 000000000..421e41a7c --- /dev/null +++ b/__e2e__/default.test.ts @@ -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(); +});