Skip to content

test case error - cannot read property 'querySelectorAll' #1830

Closed
blakegreendev/blakegreen-dev
#229
@ghost

Description

Issue causing release Tag: '0.26.1'

This line causing the issue
https://github.com/akiran/react-slick/blame/bb11613a3c615da499ed3ca8eafdff029902b8f6/src/inner-slider.js#L294

import React from 'react';
import renderer from 'react-test-renderer';
import Slider from 'react-slick';


describe('Testimonial carousel', () => {
  it('renders correctly', () => {
    const tree = renderer.create(<Slider />).toJSON();
    expect(tree).toBeTruthy();
  });
});

Activity

ghost
jvitela

jvitela commented on Dec 10, 2020

@jvitela

Same problem here with version 0.27.3
Unfortunately versions lower than 0.27.0 are not compatible with React Strict Mode
#1805

alieslamifard

alieslamifard commented on Jan 11, 2021

@alieslamifard

Same problem with 0.27.13

akiran

akiran commented on Jan 11, 2021

@akiran
Owner

Fixed it in react-slick@0.27.14

gerisztein

gerisztein commented on Jan 19, 2021

@gerisztein

@akiran for me it's quite the opposite, it was working before and 0.27.14 broke it 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @jvitela@akiran@gerisztein@alieslamifard

      Issue actions

        test case error - cannot read property 'querySelectorAll' · Issue #1830 · akiran/react-slick