Mark TestProvider as deprecated

(up for discussion, depending on adoption of test utils. Alternative approach could be to re-use TestProvider in test-utils)
This commit is contained in:
Tom Ratcliffe 2024-04-05 17:33:26 +01:00 committed by Tom Ratcliffe
parent 9ad87de0b8
commit 0f88075e4c

View File

@ -20,6 +20,8 @@ export interface Props {
/**
* Wrapps component in redux store provider, Router and GrafanaContext
*
* @deprecated Use `@grafana/test-utils` `render` method instead
*/
export function TestProvider(props: Props) {
const { store = configureStore(props.storeState), children } = props;