[{"data":1,"prerenderedAt":40},["ShallowReactive",2],{"blog-article-/blog/api-mocking-for-your-playwright-tests":3,"blog-surround-/blog/api-mocking-for-your-playwright-tests":31},{"id":4,"title":5,"body":6,"canonical":13,"date":14,"description":15,"extension":16,"featured":17,"image":18,"meta":19,"navigation":21,"ogImage":13,"path":22,"provider":23,"published":17,"seo":24,"stem":25,"tags":26,"url":29,"__hash__":30},"blog/blog/api-mocking-for-your-playwright-tests.md","API Mocking for your Playwright tests",{"type":7,"value":8,"toc":9},"minimark",[],{"title":10,"searchDepth":11,"depth":11,"links":12},"",2,[],null,"2023-07-04","When working with third party API's it is better to mock the API call rather than hit the API especially when they are API's that you do not control. Mocking the API allows you to finish developing your component or app and write the tests and then when the API is ready you can just swap out the mock for the real API call.","md",false,"v1630862642/debbie.codes/featured-posts/api-mocking_mvo0sn",{"platform":20},"Dev.to",true,"/blog/api-mocking-for-your-playwright-tests","cloudinary",{"title":5,"description":15},"blog/api-mocking-for-your-playwright-tests",[27,28],"playwright","testing","https://dev.to/playwright/api-mocking-for-your-playwright-tests-47ah","8Q9cqZMpCqChHjZ7fWbiFkJ7THZMmDWV6gz7V21BSuQ",[32,36],{"title":33,"path":34,"stem":35,"children":-1},"Not One but Two","/blog/not-one-but-two","blog/not-one-but-two",{"title":37,"path":38,"stem":39,"children":-1},"Playwright's UI Mode - watch mode and time travel debugging","/blog/ui-mode-playwright","blog/ui-mode-playwright",1790839747163]