Skip to content

@graphty/graphty-element / extend / clearRegisteredAlgorithmsForTesting

Function: clearRegisteredAlgorithmsForTesting() ​

clearRegisteredAlgorithmsForTesting(): void

Defined in: graphty-element/src/catalog/registry.ts:193

Forget every registered algorithm.

FOR TESTS, and named so that a reader cannot mistake it for part of the plugin contract: a suite that registers a plugin must be able to leave the registry as it found it, or the next suite inherits an algorithm it never asked for. Nothing in the element calls this.

Returns ​

void