it's a breath to develope with nbb. But I'm stuck on tests, seems with-redefs doesn't work if the inner code uses promises (promesa.core). Is there a way to workaround that?
write an async version of with-redefs? ;)
Iโve been using https://github.com/logseq/logseq/blob/4103b1fc935e4edcb7823b98905400dd8a33cba5/src/test/frontend/test/helper.clj#L35-L51 with cljs tests for awhile with examples in https://github.com/logseq/logseq/blob/master/src/test/frontend/handler/paste_test.cljs. Havenโt tried it with nbb yet but should work
Oh, thank you both!
It appears there is also promesa.core/with-redefs ๐
nice :)
it also works in nbb, just tested :)
Thanks! Just replaced my test helper. p/with-redefs is easier to use, better supported and know I now it works in nbb ๐