I'm looking for a way to use the config on FunSpec...
# kotest
j
I'm looking for a way to use the config on FunSpec style, is that possible?
Copy code
"danger will robinson".config(enabledIf = disableDangerOnWindows) {
  // test here
}
It looks like you have to use
@EnabledIf
🤔
s
what you're doing should work
but enabledIf is a function
if you just want a strict value, use enabled =
j
ah, so you can only do enabledIf on tests, but not on contexts in FunSpec it looks like
s
yes
There is an open ticket to expand config to parent tests. It just needs to be a cut down version as you can't do threads and things like that on it
j
ah gotcha 👍