⚠️ IMPORTANT: This extension requires both an OpenAI API key and Quokka.js (community plan is sufficient) to function properly. Please ensure you have both configured before use.
A VS Code extension that adds "Generate Mock and Run" buttons above Javascript/TypeScript functions to quickly test them with Quokka.js. It uses AI to automatically generate mock values for your function parameters based on their types.
Features
Adds CodeLens buttons above each TypeScript function
When clicked, it automatically:
Analyzes your function signature and parameter types
Uses AI to generate appropriate mock values based on those types
Creates a function call with realistic data
Runs the file with Quokka.js to see the results instantly
Supports complex TypeScript types including interfaces, arrays, and nested objects
Maintains generated code with markers for easy management