diff --git a/content/docs/addons-shallow-renderer.md b/content/docs/addons-shallow-renderer.md index 7b7f29f3cda..9a01fdc19fe 100644 --- a/content/docs/addons-shallow-renderer.md +++ b/content/docs/addons-shallow-renderer.md @@ -47,6 +47,10 @@ expect(result.props.children).toEqual([ ]); ``` +> Note: +> +> If you receive warnings or compiler errors about `ShallowRender` not being a constructable expression, the `ShallowRenderer.createRenderer();` function can be called instead of using the the new keyword. + Shallow testing currently has some limitations, namely not supporting refs. > Note: