nrepl 2025-04-02

what library I need to be able to require nrepl.core-test like mentioned in the https://nrepl.org/nrepl/1.3/building_middleware.html#testing?

nrepl/nrepl on my deps.edn doesn't seem to be enough

yes, I believe the docs are outdated and one one test using that ns I suppose?

or it was some lein magic as I found no nrepl middleware lib examples using deps.edn

> yes, I believe the docs are outdated and one one test using that ns I suppose? I'm not sure I follow. It's just a test resources with a bit of helpers in it that are still being used in the middleware tests.

I suppose that it is a mistake in the docs to assume that this namespace will be present for a third-party middleware in the same way as it's present in nrepl project itself. I suggest you just copy the necessary functions from that namespace into your project.

Ah, yeah - it's just a test resource in nREPL.

I think my point there was to illustrate some approach to testing middleware.

👍 1