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

mocking directives

My component is using directives and I get Failed to resolve directive. I added directives: { tooltip: jest.fn() }, to the options of the render function, but I still get this error.

thumbsup
0
message-simple
3

(solved) fireEvent.click doesn't make my component emit the event

We have a selector (again with this selector :D) that has the following bug: When I click on its open indicator (the arrow on the right that shows if it's open or closed) it should toggle the dropdown (open when it's closed and the close when it's opened) The first scenario…

thumbsup
0
message-simple
4

Are there any reasons why it is not supported to use the whole vuex store…

I am surprised, that the default approach here is to add each Store Module separately during test setup. As I try to reduce implementation details, I see no benefit in importing the exact store modules which are used by the mounted component or any of its child components. Just…

thumbsup
0
message-simple
3

Testing filtering in virtual scroller selector

Hey Everyone. I'm new to testing, just started testing our env, and trying to show my bosses that it's worth my time. I'm trying to test our new selector component, and I want to test its filtering mechanism. I wanted to check how many selector-option data-ids there are, but…

thumbsup
0
message-simple
4

Testing emitted events from a child component

Hi guys, what's the best approach to test emitted events from a child component, especially when that child component requires a fairly long sequence of user inputs before it emits? Simple example: A component that has a DatePicker for a child. The tested (parent) component is…

thumbsup
1
message-simple
3