QQ. Is there a way I can apply focus to a test in ...
# kotest
k
QQ. Is there a way I can apply focus to a test in ShouldSpec?
s
You can do f: at the start of the test name
thank you color 1
is that what you mean ?
If you're on 6.1+ you can also add f to the keyword, so like:
Copy code
class ShouldSpecLambdaTest : ShouldSpec({
      fshould("the name should start off null") {
         name.shouldBe(null)
      }
k
Thanks Sam! I saw the "f:" in front of the test name in a FreeSpec example and didn't realise it also works with ShouldSpec.
👍🏻 1