Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give the ability to reset the last config #71

Open
rochejul opened this issue Feb 20, 2023 · 0 comments
Open

Give the ability to reset the last config #71

rochejul opened this issue Feb 20, 2023 · 0 comments

Comments

@rochejul
Copy link

rochejul commented Feb 20, 2023

The TestWireAdapterTemplate exposes a getLastConfig method but no way to reset it.

So for some tests where we want to ensure the wire was not called for some functional reasons, we should add them as first tests into the test file and ensure the wire is not called first on another file.

Ideally we should be able to give an easy way to reset any last config (classic, Lds, Apex) without hacking the internal implementation (we could set to null the static field _lastConfig but it means we know the internal implementation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant