Skip to content

Custom jest.config.js #695

@imteekay

Description

@imteekay

I'm trying TSDX with React. And as I'm using toBeInTheDocument function from @testing-library/jest-dom, I need to import it in my test file.

But it would be awesome to add this import statement in the jest setup configuration instead of all test files I create.

Are there any way to TSDX read the "custom" jest.setup.js?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: supportAsking for support with something or a specific use casescope: docsDocumentation could be improved. Or changes that only affect docssolution: already possibleThis is already possible / this feature already existssolution: duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions