🧪 Node Tests GeneratorA Visual Studio Code extension that automatically generates unit tests for JavaScript, TypeScript, JSX, and TSX files using OpenRouter AI models like DeepSeek. ✨ Features
📦 Installation
🚀 Usage
⚙️ Configuration🔑 API Key and Model You can provide your OpenRouter API key and preferred model in two ways: Option 1: VS Code SettingsGo to Settings → Extensions → Node Tests Generator Set: API Key: your OpenRouter API key Model: (e.g., deepseek/deepseek-v3-base:free) Option 2: .env fileCreate a .env file at the project root:
If no API key is set in settings, the extension will fallback to the .env. 🧠 Prompt StrategyThe prompt sent to the model: You are an expert in writing unit tests using Jest. Given the following code, generate a complete test file with relevant and meaningful test cases. Use best practices, edge cases, and Jest conventions. Development
🤝 ContributingPull requests and suggestions are welcome! Feel free to open an issue if you find a bug or want to propose a feature. 🧾 LicenseMIT © 2025 Samuel Calderón |