This project was bootstrapped with Create React App.
This react app provides an example of how to setup testing and use basset.
- Server running basset. Record the URL of the application.
- A project created in basset. Record the API Token.
-
Fetch the tags:
git fetch --tags -
Install the packages:
npm install -
Make sure you are on the master branch:
git checkout master -
In the project directory run:
npm start -
In another terminal run:
BASSET_URL=http://localhost BASSET_TOKEN=1234eaf npm testBASSET_URL is the url for the basset server. BASSET_TOKEN is the API Token from your project in basset
You should see an input like this:
-
Assuming your tests pass - check the build within Basset. There should be 8 snapshots.
-
Apply the patch
git apply ./modify-justify-content.patch -
Repeat step 5 (assuming
npm startis still running). You should see the same output. -
Check the new build within Basset. There should now be 7 modified snapshots and 1 unmodified (the link text snapshot)
