# Testing Apollo Client Applications

DevFeed: [Testing Apollo Client Applications](<https://devfeed.tech/articles/testing-apollo-client-applications-23430.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/introduction-to-testing>)

Author: Khalil Stemmler

Published: 2021-04-22T17:54:59Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [apollo-client](<https://devfeed.tech/topics/apollo-client.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [React](<https://devfeed.tech/topics/react.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>)

Tags: [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [integration](<https://devfeed.tech/tags/integration.md>), [react](<https://devfeed.tech/tags/react.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-test](<https://devfeed.tech/tags/unit-test.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

## AI overview

A tutorial on testing Apollo Client applications with unit, integration, and end-to-end tests. It explains what each approach tests, their tradeoffs, and how they fit into a comprehensive testing strategy, with examples focused on React components and mocked GraphQL responses.

## Source excerpt

Testing is likely one of the most important (yet challenging) aspects of developing high-quality software that can safely withstand change. Tests give you confidence that your code works and will continue to work -- even as you add new features over time. This article will discuss three different approaches to testing Apollo Client applications: unit, integration, and end-to-end tests. We'll discuss what they test, their tradeoffs, and where they belong within a comprehensive testing strategy.