refactor: clean up imports and improve error messages across multiple components
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m28s

This commit is contained in:
2025-12-04 10:58:08 -08:00
parent 7d5ec198ac
commit 2026cb1584
11 changed files with 76 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
// src/components/FlyerCorrectionTool.test.tsx
import React from 'react';
import { render, screen, fireEvent, waitFor, act } from '@testing-library/react';
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
import { describe, it, expect, vi, beforeEach, type Mocked } from 'vitest';
import { FlyerCorrectionTool } from './FlyerCorrectionTool';
import * as aiApiClient from '../services/aiApiClient';
@@ -16,7 +16,6 @@ vi.mock('../services/logger', () => ({
}));
const mockedAiApiClient = aiApiClient as Mocked<typeof aiApiClient>;
const mockedNotifyError = notifyError as Mocked<typeof notifyError>;
const mockedNotifySuccess = notifySuccess as Mocked<typeof notifySuccess>;
const defaultProps = {