nrepl

ericdallo 2025-04-02T17:29:32.039859Z

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?

ericdallo 2025-04-02T17:29:46.049949Z

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

2025-04-02T18:26:03.722929Z

no doubt you saw, but it looks like this is just a namespace in the nrepl test directory: https://github.com/nrepl/nrepl/blob/e7e0e23638c54d043c316eead3756b9af258bf17/test/clojure/nrepl/core_test.clj

ericdallo 2025-04-02T18:27:29.662859Z

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

ericdallo 2025-04-02T18:27:55.342029Z

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

ericdallo 2025-04-02T18:28:28.596119Z

actually I found https://github.com/pink-gorilla/nrepl-middleware/blob/master/deps.edn with gpt's help

bozhidar 2025-04-03T05:39:22.868719Z

> 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.

oyakushev 2025-04-03T08:15:27.063579Z

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.

bozhidar 2025-04-03T08:16:08.853759Z

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

bozhidar 2025-04-03T08:16:25.931909Z

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

👍 1