We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem: After mocking a component, other tests fail.
Reason: The Element.factory will be overwritten.
Solution: Make a copy of the factory and add a "restoreComponent" to be run in afterEach(afterAll.
Side request: Rename "mock" to "mockComponent".
Expected usage:
beforeEach(function(): void { mockComponent(MyComponent); }); afterEach(function(): void { restoreComponent(MyComponent); });
The text was updated successfully, but these errors were encountered:
enbock
No branches or pull requests
Problem: After mocking a component, other tests fail.
Reason: The Element.factory will be overwritten.
Solution: Make a copy of the factory and add a "restoreComponent" to be run in afterEach(afterAll.
Side request: Rename "mock" to "mockComponent".
Expected usage:
The text was updated successfully, but these errors were encountered: