Dan Čermák <dcermak@suse.com>
FOSDEM 2021, 6.2.2020This work is licensed under CC BY 4.0
Dan Čermák
Solutions:
LD_PRELOAD
trickWhy is it hard?
clean up after yourself!
quickPick.onDidChangeValue(async (val: string) => {
if (verifyInput(val)) {
await launchBackgroundTask();
}
});
→ use fake events when possible
after()
or afterEach()
Do it yourself
Make a test plan
const editor = new TextEditor();
const pkgJsonEditor = await new EditorView().openEditor('package.json');
await pkgJsonEditor.setText('{"foo": [1, 2, 3], "bar": "baz"}');
await pkgJsonEditor.formatDocument();
it()
Thank you for your time!