rcf icon indicating copy to clipboard operation
rcf copied to clipboard

`thrown?` is not resolved in cljs

Open ggeoffrey opened this issue 2 years ago • 1 comments

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

ggeoffrey avatar Jun 08 '22 10:06 ggeoffrey

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

dustingetz avatar Jun 08 '22 16:06 dustingetz