Ensure you have the env file set up correctly
- install packages using
pnpm
(preferred)
pnpm install
- Run dev server locally:
# npm
npm run dev
# yarn
yarn dev
# pnpm
pnpm dev
# You can find this value in the assessment guide
# This is required for the Steps section to function
VITE_STEPS_ENDPOINT=
After running the "dev" script, your console will log the URL and port where you can find the app.
You can run the test runner by executing the following command in your console:
# run the test script, here we show an example with pnpm
pnpm test
⚠️ Warning: If your tests fail to run, you might need to editsrc/hooks/useFetchSteps.ts
and remove the 'import' sytax from line 5. For the sake of tests, you can replace it with a dummy string
Thanks for taking the time to look at my technical assessment!
If this was a larger project, I would use Tailwind, React-Query, and/or Redux Toolkit.
I used Vite to create the app and Jest for writing a quick unit test. I would use Cypress if this was a larger project and add some E2E.