diff --git a/src/App.test.tsx b/src/App.test.tsx index 120903e..5a8e631 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -1,5 +1,5 @@ import { render, screen, fireEvent } from '@testing-library/react' -import { describe, it, expect, vi, beforeAll } from 'vitest' +import { describe, it, expect, vi, beforeAll, beforeEach } from 'vitest' import App from './App' // Mock window.scrollTo and fetch since jsdom does not implement them @@ -47,6 +47,10 @@ beforeAll(() => { }) }) +beforeEach(() => { + localStorage.clear() +}) + describe('Supplier Portal Onboarding & Active Dashboard Tests', () => { it('renders landing page with correct primary titles', () => { render()