Skip to content

Commit f3d12ac

Browse files
fix(studio): correct relative import paths in nested test files
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/7895254c-6920-4d1d-9af2-fab5bf005c67 Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent e9e5404 commit f3d12ac

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

apps/studio/test/components/AppSidebar.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
import { describe, it, expect, vi, beforeEach } from 'vitest';
55
import { render, screen, waitFor } from '@testing-library/react';
6-
import { AppSidebar } from '../src/components/app-sidebar';
6+
import { AppSidebar } from '../../src/components/app-sidebar';
77
import { ObjectStackProvider } from '@objectstack/client-react';
88
import { ObjectStackClient } from '@objectstack/client';
9-
import { PluginRegistryProvider } from '../src/plugins';
9+
import { PluginRegistryProvider } from '../../src/plugins';
1010
import type { InstalledPackage } from '@objectstack/spec/kernel';
1111

1212
const mockClient = {

apps/studio/test/components/ObjectDataForm.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { describe, it, expect, vi, beforeEach } from 'vitest';
55
import { render, screen, waitFor } from '@testing-library/react';
66
import userEvent from '@testing-library/user-event';
7-
import { ObjectDataForm } from '../src/components/ObjectDataForm';
7+
import { ObjectDataForm } from '../../src/components/ObjectDataForm';
88
import { ObjectStackProvider } from '@objectstack/client-react';
99
import { ObjectStackClient } from '@objectstack/client';
1010

apps/studio/test/components/ObjectDataTable.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { describe, it, expect, vi, beforeEach } from 'vitest';
55
import { render, screen, waitFor } from '@testing-library/react';
6-
import { ObjectDataTable } from '../src/components/ObjectDataTable';
6+
import { ObjectDataTable } from '../../src/components/ObjectDataTable';
77
import { ObjectStackProvider } from '@objectstack/client-react';
88
import { ObjectStackClient } from '@objectstack/client';
99

apps/studio/test/plugins/plugin-system.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
import { describe, it, expect, vi, beforeEach } from 'vitest';
55
import { render, screen } from '@testing-library/react';
6-
import { PluginRegistry, PluginRegistryProvider, usePluginRegistry } from '../src/plugins';
6+
import { PluginRegistry, PluginRegistryProvider, usePluginRegistry } from '../../src/plugins';
77
import { defineStudioPlugin } from '@objectstack/spec/studio';
8-
import type { StudioPlugin } from '../src/plugins/types';
8+
import type { StudioPlugin } from '../../src/plugins/types';
99

1010
// Test component that uses the plugin registry
1111
function TestPluginConsumer() {

0 commit comments

Comments
 (0)