Thenlie / Streamability

Streamability is your one-stop-shop for planning your perfect movie night.
https://streamability.vercel.app/
MIT License
17 stars 9 forks source link

🧪 Create test suite for MovieDB requests #187

Closed Thenlie closed 1 year ago

Thenlie commented 1 year ago

We want to ensure the MovieDB function are returning the expected data. We will likely need to mock the fetch calls.

We need to make sure we aren't simply hardcoding the results.

I ended up doing a lot of this work on #184

Thenlie commented 1 year ago

I will continue to work on this as I learn more about Mocking. We actually probably do want to hardcode the results, as we do not want network interference to impact our tests. Rather, we should mock invalid API calls and ensure our site can handle them. At the end of the day we have no control over the MovieDB API so we should make sure the site is able to handle whatever it returns.

Thenlie commented 1 year ago

Closed by #200