issues
search
jaiarobotics
/
jaiabot
Jaiabot source code
Other
17
stars
2
forks
source link
task/integrate-jest-testing-framework
#883
Closed
michael-jaia
closed
1 month ago
michael-jaia
commented
1 month ago
Summary
Configures Jest and React Testing Library (RTL) to function in the
web
directory.
Establishes the structure of encapsulating a component, its style, and its tests into its own directory
Moves the
tsconfig
file to the top of the
web
directory so it can interface with Jest and RTL
Writes unit tests for the
JaiaAbout
component and a small integration test with the
CommandControl
component opening
JaiaAbout
Testing
See tests :) (Run with
npm test
from the
web
directory)
Because I moved the location of
CommandControl
, I launched the simulator to verify I could send the bots on missions.
Notes
Need to finalize a plan with Matt and team to roll-out testing into our workflow
RTL helpful resource:
https://www.youtube.com/watch?v=7dTTFW7yACQ&list=PL4cUxeGkcC9gm4_-5UsNmLqMosM-dzuvQ
Summary
web
directory.tsconfig
file to the top of theweb
directory so it can interface with Jest and RTLJaiaAbout
component and a small integration test with theCommandControl
component openingJaiaAbout
Testing
npm test
from theweb
directory)CommandControl
, I launched the simulator to verify I could send the bots on missions.Notes