Migrate from Redux to React Query and React Context. This modernizes state management while maintaining all existing functionality. All the redux code and files were removed, including all redux and related packages.
16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
import React from 'react';
|
|
import { render, screen } from '@testing-library/react';
|
|
import AppWrapper from './index';
|
|
|
|
describe('AppWrapper', () => {
|
|
it('should render children without modification', () => {
|
|
render(
|
|
<AppWrapper>
|
|
<div>Test Child</div>
|
|
</AppWrapper>,
|
|
);
|
|
|
|
expect(screen.getByText('Test Child')).toBeInTheDocument();
|
|
});
|
|
});
|