To test Pinia stores using epps, you need to use the createPluginMock function. This function provides a mock implementation of epps plugin, allowing you to simulate its behavior during testing.
It creates a mock persistence layer and optionally supports encryption using the provided initialization vector (IV) and encryption key. By integrating this mock plugin into your Pinia instance, you can test your stores without relying on actual browser storage or encryption mechanisms.
Here is an example of how to use createPluginMock in a beforeEach setup function: