Skip to content

Built-in testing? #372

@kentcdodds

Description

@kentcdodds

Might be helpful. My idea is basically a @remix-run/test package with all the utilities.

  • Built on top of @testing-library/react and re-exports everything + a custom render that includes all providers our route components have access to when they're run + any utilities to set the loader/action data both on initial render as well as re-rendering with those values.
  • @testing-library/user-event should be built-in as well
  • As @sergiodxa suggested, Jest assertions for Responses
  • Potentially some helpers for E2E tests with Cypress and MSW 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions