Is there an opposite to `collection shouldExist { ...
# kotest
l
Is there an opposite to
collection shouldExist { … }
? I want to test that the collection does not contain an element matching the predicate
s
You can use an inspector.
Copy code
collection.forNone {
   it some matcher
   it another matcher
}
l
That’s perfect. Thank you 👍