FluentUI Tester
is the test app that we use to test our FluentUI components during development.
-
Make sure you have followed the Getting Started instructions to clone and build the entire FluentUI React Native repository. I.e. from the root of the repo:
-
Then go into
apps\win32
folder:
cd apps\win32
- Build the FluentUI Tester bundle:
yarn bundle
- Launch the FluentUI Tester app:
yarn run-win32
- You will see FluentUI Tester show up in a new window.
Note: we recommend using Visual Studio Code for direct debugging.
-
Follow the same step #1 as above.
-
Follow the same step #2 as above.
-
Build the FluentUI Tester bundle with dev option. This will ensure source map is included in the bundle.
yarn bundle-dev
- Launch the FluentUI Tester app:
yarn run-win32
- Inside ReactTest, open the debug option menu and select the checkbox
Use Direct Debugger
- In Visual Studio Code, open the debug pane and select
Debug Fabric Tester
option from the "Run And Debug" dropdown.
- At this time, VS Code will attach to the JS runtime and you can start debugging. For more information on debugging in VS Code, please see Visual Studio Code documentation.
- Follow the same step #1 as above.
- Follow the same step #2 as above.
- Start the debug server:
yarn start
-
Open Edge or Chrome and navigate to http://localhost:8081/debugger-ui
-
Open another command prompt and go into the same location
apps\win32
and run:
yarn run-win32-web
- Launch your test app + packager as you normally would
- Go the debug menu in VS Code and run the "Attach to Packager (Win32)" configuration
- Open the developer menu in your test app, and click debug
- You now should be able to set breakpoints and step through your code directly in VS Code.
Dependencies are managed by
@rnx-kit/dep-check
.
If you're looking to upgrade react-native
, look for the rnx-kit
section in
/apps/win32/package.json
:
{
...
"rnx-kit": {
"reactNativeVersion": "^0.63",
"kitType": "app",
"bundle": {
...
}
Bump reactNativeVersion
, and run yarn rnx-dep-check --write
. This command
will ensure that all relevant packages are bumped correctly.
You can read more about this tool here:
@rnx-kit/dep-check
design document