Slides are available at [https://refactor-tractor.ez.codes]
dateFormat
and UserInfo
examples can be found in
src/__tests__exampleTests.test.jsx
: the starter codecompleted_examples/exampleTests_with_tests.test.jsx
: with the testscompleted_examples/exampleTests_done.test.jsx
: with the refactor of formatDate
And there's a version of Ye Olde Farme Shoppe with the new requirements on the branch complete
It's worth noting, that for each change we needed to make, refactoring code made the actual change required trivial. They became config changes rather than real code changes.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.