The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
docs: update documentation for test module configuration in registry.json to clarify section headings
vholik3303180a5aa1
diff --git a/packages/registry/registry.json b/packages/registry/registry.jsonindex 8b8f054ee..ef257b451 100644--- a/packages/registry/registry.json+++ b/packages/registry/registry.json@@ -8,7 +8,7 @@"description": "A block with a test module, product-test link, and API route.","dependencies": [],"registryDependencies": [],- "docs": "## Configuration\n\nAdd the test module to your `medusa-config.ts`:\n\n```ts\nmodules: [\n {\n resolve: './modules/test',\n options: {\n apiKey: process.env.TEST_API_KEY,\n },\n },\n]\n```\n\n## Environment Variables\n\nAdd the following to your `.env` file:\n\n```\nTEST_API_KEY=your-api-key\n```\n\n## Usage\n\nThe test module provides a service that can be injected into your API routes:\n\n```ts\nimport { MedusaRequest, MedusaResponse } from '@medusajs/framework';\nimport TestModuleService from '../../../modules/test/service';\n\nexport async function GET(req: MedusaRequest, res: MedusaResponse) {\n const testService = req.scope.resolve<TestModuleService>('testModuleService');\n const result = await testService.doSomething();\n res.json(result);\n}\n```\n\n## Links\n\nThis block includes a `product-test` link that connects products to test entities.",+ "docs": "## Test Block Configuration\n\nAdd the test module to your `medusa-config.ts`:\n\n```ts\nmodules: [\n {\n resolve: './modules/test',\n options: {\n apiKey: process.env.TEST_API_KEY,\n },\n },\n]\n```\n\n## Environment Variables\n\nAdd the following to your `.env` file:\n\n```\nTEST_API_KEY=your-api-key\n```","files": [{"path": "block-1/modules/test/index.ts",