This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Description
✨ Feature proposal
Ability to define a set of default requests that will be used in every test.
🎯 Motivation
There are some scenarios where we would like to have a set of default requests for every test, i.e. Feature Flags.
👀 Example
import { render } from '@testing-library/react'
configure({
mount: render,
defaultResponses: [
{
path: '/feature_flags',
responseBody: {
flags: ['flag_1', 'flag_2']
}
}
]
})
💬 Comments