- Getting Set up
- Building Samples and Packages
- Running a Sample or Storybook
- Testing your changes
- Writing unit tests
- Submitting a PR
- Having your changes published
The key ways to test your changes are:
- Unit tests (see 5. Writing unit tests)
- Tests in the sample apps (see 3. Running a Sample)
- Tests in Storybook (see 3. Running Storybook)
- Automated tests (see Automated tests)
- Accessibility tests (see Accessibility tools)
A common scenario is that you encountered a bug in your app and are looking to submit a fix but want to test the fix works in your app. To test changes made in this repo inside your app follow the following process:
-
Make your changes to the necessary packages in this repo
-
Build those packages using the rush command
rush build -t "package-name"
-
Npm pack your changes to migrate them to your repo
-
Run npm pack in the package directory
# inside the root of the package you wish to test in your app npm pack
-
This will produce a tarball file
package-name.tar.gz
-
-
Copy and paste this tarball into your app's root directory
-
Install the tarball as a dependency in your app:
npm install "package-name.tar.gz"
-
You will need to repeat this process for each package you have made changes to
- Next: Writing unit tests
- Previous: Running a Sample or Storybook