Cook

subscribeToEngineStateChange

Use this method to subscribe to engine state event changes when working with tests in plugin-core. This can be used in situations where the engine state changes asynchorously from test logic (such as from vscode event callbacks)

Upating the cursor position

Creating notes after engine is started

If your test cases involve creating notes that cannot be done in the hooks of describeSingleWS, use NoteTestUtilsV4.createNoteWithEngine or CreateNoteFactory.createWithEngine in the test methods themselves

check if you are running in test mode

getStage() === test

Backlinks