Skip to content

Commit 268aa96

Browse files
Copilothotlong
andcommitted
Fix CI build errors: remove unused React import and fix InMemoryDriver.insert → create
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent e8a0c7b commit 268aa96

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

apps/console/src/__tests__/ActivityFeedFilters.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import { describe, it, expect, vi } from 'vitest';
1010
import { render, screen, fireEvent } from '@testing-library/react';
1111
import '@testing-library/jest-dom';
12-
import React from 'react';
1312

1413
// Mock UI components – Sheet always renders all children so we can test content
1514
vi.mock('@object-ui/components', () => ({

apps/console/src/__tests__/ReportView.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ describe('ReportView Data Loading', () => {
2626
await adapter.connect();
2727

2828
// Seed test data for the opportunity object
29-
const driver = getDriver();
30-
await driver.insert('opportunity', {
29+
const driver = getDriver()!;
30+
await driver.create('opportunity', {
3131
id: '1',
3232
name: 'Deal Alpha',
3333
amount: 50000,
3434
stage: 'Proposal',
3535
close_date: '2024-03-31',
3636
});
37-
await driver.insert('opportunity', {
37+
await driver.create('opportunity', {
3838
id: '2',
3939
name: 'Deal Beta',
4040
amount: 75000,
4141
stage: 'Negotiation',
4242
close_date: '2024-04-15',
4343
});
44-
await driver.insert('opportunity', {
44+
await driver.create('opportunity', {
4545
id: '3',
4646
name: 'Deal Gamma',
4747
amount: 100000,

0 commit comments

Comments
 (0)