Cannot bypass getters with TypeScript #1605
Labels
✨ enhancement
New feature or request
has workaround
The issue contains a temporary solution to get around the problem
🧪 pkg:testing
Related to the @pinia/testing package
Reproduction
https://stackblitz.com/edit/github-xe2cxw?file=src%2Fstores%2Fcounter.test.ts
Steps to reproduce the bug
Given the following code:
Expected behavior
TypeScript should not complain.
Actual behavior
TypeScript raises the following error:
Additional information
This is to be able to mock getters in tests
https://pinia.vuejs.org/cookbook/testing.html#mocking-getters
The text was updated successfully, but these errors were encountered: