EmulativeEmulative is a VSCode extension which helps developers speed up testing by creating mock objects representing TypeScript types straight from Visual Studio Code. FeaturesYou can use Emulative to produce Typescript objects, Json objects or builder functions from Typescript types: Copy Typescript objectsCopy Json objectsCreate a scratch file with Typescript objectsCreate a builder functionUsageTo use Emulative:
Extension SettingsThere are several options avaliable to customise Emulative under
Known IssuesType supportEmulative is hugely dependent on the wonderful work from the team who created intermock. Therefore, the types supported by Emulative match those supported by intermock. If Emulative encounters a type it isn't able to handle it will try and create a stub where possible or ignore the type completely. We are hoping to improve the types handled by Emulative in future releases. Multiple filesEmulative is able to produce a mock type from a type which is defined in another file at one level. However, it does not currently support types with references to other types which are spread across multiple files. We are hoping to address this limitation in the next release. Release Notes1.1.0v1.1.0 release of Emulative, includes:
1.0.0v1 release of Emulative, includes:
0.1.0Initial release of Emulative, includes ability to:
AcknowledgementsLike most software these days, this wouldn't be posssible without all the amazing open source work out there. In particular, this extension relies heavily on the amazing work of the team at intermock Also, thanks to Easy Agile for giving us the time, space, encouragement and tools to work on this extension. Come work for us! Created by John Folder with contributions by Conor Gould, Anthony Suker and David Sirotich at Easy Agile |