Skip to content

Commit

Permalink
build and install an iOS app
Browse files Browse the repository at this point in the history
Summary:
Allows us to `yarn build ios` the helloworld app.

Changelog: [Internal]

Differential Revision: D57067038
  • Loading branch information
blakef authored and facebook-github-bot committed May 7, 2024
1 parent 035b791 commit 086029c
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 222 deletions.
23 changes: 23 additions & 0 deletions packages/helloworld/__tests__/cli-tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
* @oncall react_native
*/

import {execSync} from 'child_process';

describe('helloworld/cli', () => {
it('handles arguments piped as string', () => {
expect(
execSync('echo "pong=hello" | node ./cli.js ping', {
cwd: '../',
encoding: 'utf8',
}),
).toEqual('Donkey Kong!');
});
});

0 comments on commit 086029c

Please sign in to comment.