@mallardbay/cursor-rules 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,6 +59,7 @@ Avoid e2e tests for UI. Favor unit tests.
|
|
|
59
59
|
- Apollo mocks
|
|
60
60
|
- Provider mocks
|
|
61
61
|
- Keep mocks simple and maintainable
|
|
62
|
+
- **Do not use variable matchers for Apollo mocks**—match exact variables (e.g. avoid `expect.anything()` or `variables: {}`) so tests fail when the component passes incorrect variables to queries or mutations
|
|
62
63
|
|
|
63
64
|
### Test Utilities
|
|
64
65
|
|
|
@@ -62,6 +62,7 @@ Avoid e2e tests for UI. Favor unit tests.
|
|
|
62
62
|
- Apollo mocks
|
|
63
63
|
- Provider mocks
|
|
64
64
|
- Keep mocks simple and maintainable
|
|
65
|
+
- **Do not use variable matchers for Apollo mocks**—match exact variables (e.g. avoid `expect.anything()` or `variables: {}`) so tests fail when the component passes incorrect variables to queries or mutations
|
|
65
66
|
|
|
66
67
|
### Test Utilities
|
|
67
68
|
|