Replaced all agar chain usage with newer BDD style of testing or just async await in general.
Loader.tsx now exports a render function that returns a ReactEditorContext. This implements Disposable, which simplifies creating safe tests that cleanup editor instances and associated React DOM nodes.
Loader.tsx also exports a withVersion function that passes a RenderWithVersion function to a callback. This function is similar to the exported render function but with some props omited:
Jira: INT-3297
Changes:
Loader.tsx
now exports arender
function that returns aReactEditorContext
. This implementsDisposable
, which simplifies creating safe tests that cleanup editor instances and associated React DOM nodes.Loader.tsx
also exports awithVersion
function that passes aRenderWithVersion
function to a callback. This function is similar to the exportedrender
function but with some props omited:using
keyword.