The Jade 2025 release focuses on modernising the developer experience and helping you build faster, smarter, and more scalable applications.
The original idea can be removed as the functionality can be implemented using process.createTransientClass(..). However can this undocumented method be made part of the official release?
Closng this one. We now have the Jade Mocking Framework. For details, see the Mocking framework documentation under the Jade‑Mocking link at https://github.com/jadesoftwarenz.
If I've understood your question correctly, you don't want the overhead of creating mock subclasses?
If so you might find some ideas in the link below, but in short, create the mock class transiently using process.createTransientClass(..) ).
Warning: this function is likely to be unpublished, so if you come to rely on it you'd need to discuss with Jade to see it published.
https://github.com/jadelab/AutomatedTestSchema/wiki/Test-Doubles