Skip to content

Commit e28dd11

Browse files
Copilothotlong
andcommitted
Fix all test timeouts and add chartComponents export
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 9237710 commit e28dd11

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

packages/plugin-aggrid/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Plugin AgGrid', () => {
1313
// Import all renderers to register them
1414
beforeAll(async () => {
1515
await import('./index');
16-
});
16+
}, 15000); // Increase timeout to 15 seconds for async import
1717

1818
describe('aggrid component', () => {
1919
it('should be registered in ComponentRegistry', () => {

packages/plugin-charts/src/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ export type { BarChartSchema } from './types';
1515
export { ChartBarRenderer, ChartRenderer };
1616
export { ObjectChart } from './ObjectChart';
1717

18+
// Standard Export Protocol - for manual integration
19+
export const chartComponents = {
20+
'bar-chart': ChartBarRenderer,
21+
'chart': ChartRenderer,
22+
};
23+
1824
// Register the component with the ComponentRegistry
1925
ComponentRegistry.register(
2026
'bar-chart',

packages/plugin-kanban/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Plugin Kanban', () => {
1313
// Import all renderers to register them
1414
beforeAll(async () => {
1515
await import('./index');
16-
});
16+
}, 15000); // Increase timeout to 15 seconds for async import
1717

1818
describe('kanban component', () => {
1919
it('should be registered in ComponentRegistry', () => {

packages/plugin-markdown/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Plugin Markdown', () => {
1313
// Import all renderers to register them
1414
beforeAll(async () => {
1515
await import('./index');
16-
});
16+
}, 15000); // Increase timeout to 15 seconds for async import
1717

1818
describe('markdown component', () => {
1919
it('should be registered in ComponentRegistry', () => {

0 commit comments

Comments
 (0)