hawk icon indicating copy to clipboard operation
hawk copied to clipboard

It watches your code like a hawk! You like tests, right? Then run them with our state-of-the-art Clojure test runner.

Results 10 hawk issues
Sort by recently updated
recently updated
newest added

From https://github.com/metabase/metabase/issues/26843 ### My original description: We have logic to make sure you don't do things like `with-redefs` inside `^:parallel` tests. We do this by swapping out `clojure.core/test-var` with a...

Two JS objects or arrays with `=?` contents should be `=?`. Deep comparison on JS objects is intractable, but we can support the obvious cases of vanilla objects and arrays....

``` (deftest foo-test (is (=? even? 4)) ; passes (is (=? {:foo even?} {:foo 42})) ; passes (is (=? #{even?} #{2 4 6 8}))) ; fails: expected #{even?}, actual #{2...

We already do this for second-date, macaw, etc. so it should be super straightforward. Would be nice to stop using git SHAs in Metabase's deps.edn

Our deps include `malli` and `schema` to support `#hawk/schema` and `#hawk/malli` readers within `=?`. We should not include those libs in hawk, instead makes those readers conditionally available if those...

There are some instances where it's useful to assert on the shape of some keys of a map while also asserting that another key is not present. https://github.com/search?q=repo%3Ametabase%2Fmetabase+%22key+is+not+present.%22&type=code I'm not...

It's enabled by default; we disabled it in Metabase and thus Hawk. We should make it an option

Could be useful in cases where you want to run all the tests except for one or two specific tests that are known to fail

enhancement

You would expect this to fail, but for whatever reason it does not. I guess this is probably because of the whole "key is not present" not-found value we use

bug