TBD54566975 / developer.tbd.website

Source for the TBD Developer Website
https://developer.tbd.website
Apache License 2.0
52 stars 104 forks source link

Reactify QuickStart and Ensure it's Tested #1093

Closed ALRubinger closed 5 months ago

ALRubinger commented 10 months ago

Move QuickStart from vanilla JS into React in a way it can have automated tests consistent with the rest of the examples suite.

When done, remove the manual testing step in the release process template.

Related:

dayhaysoos commented 10 months ago

Just spoke with @blackgirlbytes about this! Gave us the thumbs up (but will update with feedback/concerns if any pop up)

I will be documenting the changes to be done later

dayhaysoos commented 10 months ago

Reactifying

Currently, the quickstart being surfaced on the docs site is being done in vanilla JavaScript. It's extremely messy this way and it gets hard to update/maintain over time. Switching all of the logic to be done with React will make things much easier to read.

Testing

I'm thinking we should keep a lot of the functions that interact with the Web5 API the same (more or less) and we export them from the file directly. We can import them into the Vitest suite in a __tests__ directory at the src level of the project.

These are the following functions that will be getting tested: