Skip to content

Loading css with js-dom #664

Open
Open
@Karljoy973

Description

@Karljoy973

Hi everyone,
I am looking to load a css file at the beginning of one of my test so that I can check if my ui element that I am testing has the correct style.

I have seen that jsdom does not load css and this is the reason why my tests are failing. I do want to have this css and I dont want to use the style attribute as I am working with tailwind.

Do someone knows how to fix the situation ?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @Karljoy973

      Issue actions

        Loading css with js-dom · Issue #664 · testing-library/jest-dom