Create a NodeJS API with Koa and TypeScript - #13 - From Mocks To The Real Deal
36K views
Feb 14, 2023
By replacing the real storage implementation with a mocked equivalent, we have managed to get a single test to a passing state. We'd already covered that this was the simplest happy path as in reality if we had no games in our list, we could simply return whatever was "posted in" as the only value to return in the response. Things get more complex when we have existing data in the list, and want to add something new.
#Computers & Electronics
# Web Design & Development
# Web Stats & Analytics