mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add a basic Jest test to helloworld (#51534)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51534 Aims to give us CI coverage of React Native's Jest preset, preventing future bugs like https://github.com/facebook/react-native/pull/51525. Changes: - Add a basic "it renders" Jest test to helloworld - Add "Run Helloworld tests" step to `test-ios-helloworld` job in CI - Also convert helloworld's `App.tsx` to TypeScript, as easiest way to unblock Jest JSX behaviour. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D75218901 fbshipit-source-id: 601155c59c4483696971df4c29d51549d97f49f2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0acd0828aa
commit
c937439e87
@@ -83,7 +83,13 @@ runs:
|
||||
|
||||
yarn bootstrap ios "${args[@]}" | cat
|
||||
|
||||
- name: Build HelloWorld project
|
||||
- name: Run Helloworld tests
|
||||
shell: bash
|
||||
run: |
|
||||
cd packages/helloworld
|
||||
yarn test
|
||||
|
||||
- name: Build HelloWorld project
|
||||
shell: bash
|
||||
run: |
|
||||
cd packages/helloworld
|
||||
|
||||
Reference in New Issue
Block a user