hyperfiddle / rcf

RCF – a REPL-first, async test macro for Clojure/Script
MIT License
271 stars 11 forks source link

`thrown?` is not resolved in cljs #54

Open ggeoffrey opened 2 years ago

ggeoffrey commented 2 years ago
(ns foo
  (:require [hyperfiddle.rcf :refer [tests]]))

(tests
  (inc nil) thrown? NullPointerException)

Compiler warning:

Use of undeclared Var foo/thrown?

thrown? is defined by t/assert-expr, it should not be resolved in the current ns if used in an assertion.

dustingetz commented 2 years ago

I propose to rename thrown? to throws? or even :throws