Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
test: add cache persistence and invalidation tests #22013
This adds some NON-unit tests for cache persitence/invalidation behaviours.
Primarily used for checking state of
Because we blow away entire cache on any change now, there is not much value in this (but it already did catch in loki persistance ( #22009) - so there's some value.
There are already existing assertions for selective cache invalidation scenarios - but they are unreachable in current master - they are hidden behind
High level overview of how those tests work.
There is test site using multiple local plugins with some fixtures with programmatic way of adding/removing plugins from
See https://github.com/gatsbyjs/gatsby/tree/cache-integraion-tests/integration-tests/cache-resilience/plugins for somewhat structure breakdown of what scenarios exist. Each scenario can have multiple local plugins that act as fixtures (currently some scenarios have 1 plugins and some have 2).
Split from #8379
Co-authored-by: Sidhartha Chatterjee email@example.com
Some notes from our review