menu

Testing Library

Simple and complete DOM testing utilities that encourage good testing practices.

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# General Help
view-forward
# Angular Help
view-forward
# Cypress Help
view-forward
# DOM Help
view-forward
# React Help
view-forward
# TestCafe Help
view-forward
# Vue Help
view-forward
Team
Posts
Members
Info

Does angular-testing-library re export `screen`?

I'm writing a test for a service that creates CDK overlays, and I need to assert against the document body. It seems that screen isn't available from @testing-library/angular, but the within function is

thumbsup
0
message-simple
1

How can I test if methods in the onDestroy() are being called?

I'm currently working on a project that uses Web-sockets, it's very important that I can verify that the socket connection is being closed in the onDestroy() of my component. But I can't find how to unmount a test-render? Does anyone have some experience or ideas on how this…

thumbsup
0
message-simple
1