-
Notifications
You must be signed in to change notification settings - Fork 2
Fix registration test timeout in plugin-detail #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2ff331c
969ac69
45473bf
9237710
e28dd11
34ada07
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,12 @@ export type { BarChartSchema } from './types'; | |
| export { ChartBarRenderer, ChartRenderer }; | ||
| export { ObjectChart } from './ObjectChart'; | ||
|
|
||
| // Standard Export Protocol - for manual integration | ||
| export const chartComponents = { | ||
| 'bar-chart': ChartBarRenderer, | ||
| 'chart': ChartRenderer, | ||
| }; | ||
|
Comment on lines
+18
to
+22
|
||
|
|
||
| // Register the component with the ComponentRegistry | ||
| ComponentRegistry.register( | ||
| 'bar-chart', | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,7 @@ import { ComponentRegistry } from '@object-ui/core'; | |||||
| describe('Plugin Detail Registration', () => { | ||||||
| beforeAll(async () => { | ||||||
| await import('./index'); | ||||||
| }); | ||||||
| }, 15000); // Increase timeout to 15 seconds for async import | ||||||
|
||||||
| }, 15000); // Increase timeout to 15 seconds for async import | |
| }, 30000); // Increase timeout to 30 seconds for async import to align with other registration tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Standard Export Protocol" pattern for manual integration is introduced here but lacks documentation. According to Rule #2 (Documentation Driven Development), features must be documented in the package README.md or content/docs/guide/*.md. This pattern appears across multiple plugins (aggrid, dashboard, editor, kanban, markdown) but is not explained anywhere, making it unclear when and how developers should use these exported component objects versus the ComponentRegistry.