

In the examples in this post I use the Testing Library and do not access the AG Grid API. This uses low level API Access on the grid to allow access to the internals for the AG Grid. In the AG Grid Documentation there is an example of using Enzyme for Unit level testing. It is not specifically a Unit Testing library because it is designed to target user visible interactions and changes, rather that internal object changes.

The Testing Library is a JavaScript testing library which works with multiple frameworks. Testing the Grid Component Scope Decisions.How to Run Testing Library Tests with NPM.This post describes how to add Automated Testing with Jest and the React Testing Library. This post shows how to use Jest and the React Testing Library with AG Grid.Īll the code to support this blog post is available on Github in the React Data Grid Podcast Project, in particular the version 8 folder is the version where Testing Library was used.Ī previous blog post described the development of the Podcast Player application. Having written a Podcast Player using AG Grid, we should really add some tests.
