how can I pass some object from a custom SpecExten...
# kotest
s
how can I pass some object from a custom SpecExtension to the the Spec so that the test cases can use it?
s
The spec is already constructed before the spec extension is called
you could use a
Copy code
ConstructorExtension
If you want to intercept the construction and pass parameters to it
Alternatively, you could smart cast in SpecExtension and then update if you have vars