godmode

Testing Extensions

Test your extensions with @godmode-cli/test

Install

npm install -D @godmode-cli/test

Usage

import { testExtension } from '@godmode-cli/test';
testExtension('my-api', 'path/to/manifest.yaml');

This will:

  1. Register the extension via godmode extension add
  2. Test every route resolves to the correct URL using --dry-run
  3. Verify --help output shows usage and resources

On this page