In CLJS clojure.test is a synonym for cljs.test

Open
#632 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure
Domain
compilers

Research direction

Start by reading the namespace-resolution logic linked in src/main/clojure/cljs/analyzer.cljc at lines 1223 and 2959, then locate the corresponding resolution path in SCI. Verify how clojure.test and cljs.test are handled, preserving clojure.edn as a real namespace; done means the fallback works while that exception remains correct.

Written by the indexing model from the issue text.

Description

hammock

See https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer.cljc#L1223 and https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer.cljc#L2959.

What should probably be done:

Try the clojure.* namespace as is. When not found, fall back on cljs.*.
Then we can add cljs.test in nbb and it should work as required with clojure.test.

In the case of clojure.edn: that is a REAL namespace so it should not be treated as a synonym for cljs.reader.

Dominant language
Clojure
Stars
1.4k
Forks
109
Avg merge
1m
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from babashka/sci

All issues in babashka/sci

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.