Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 committed Jan 22, 2024
1 parent 3738de3 commit eac2c15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/studio-api-impl.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import type { Webview } from '@podman-desktop/api';

import * as fs from 'node:fs';
import { CatalogManager } from './managers/catalogManager';
import { RouterRegistry } from './registries/RouterRegistry';

Check failure on line 33 in packages/backend/src/studio-api-impl.spec.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / windows-2022

All imports in the declaration are only used as types. Use `import type`

Check failure on line 33 in packages/backend/src/studio-api-impl.spec.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / ubuntu-22.04

All imports in the declaration are only used as types. Use `import type`

vi.mock('./ai.json', () => {
return {
Expand Down Expand Up @@ -78,6 +79,7 @@ beforeEach(async () => {
{} as unknown as TaskRegistry,
{} as unknown as PlayGroundManager,
catalogManager,
{} as unknown as RouterRegistry,
);
vi.resetAllMocks();
vi.mock('node:fs');
Expand Down
2 changes: 2 additions & 0 deletions packages/frontend/src/pages/Model.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ vi.mock('../utils/client', async () => {
return {
studioClient: {
getCatalog: mocks.getCatalogMock,
saveRouterState: vi.fn(),
getRouterState: vi.fn().mockResolvedValue({url: '/'}),
},
rpcBrowser: {
subscribe: () => {
Expand Down

0 comments on commit eac2c15

Please sign in to comment.