feat: Add user registration component and authentication services
- Implemented Register component for user sign-up with form validation and network status handling. - Created authAPI service for handling user login and registration with online/offline support. - Developed localStorage service for managing user data and sessions offline. - Introduced networkService for detecting online/offline status and managing connectivity. - Defined authentication types for requests and responses. - Added TypeScript configuration for the project.
This commit is contained in:
13
__tests__/App.test.tsx
Normal file
13
__tests__/App.test.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @format
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import ReactTestRenderer from 'react-test-renderer';
|
||||
import App from '../App';
|
||||
|
||||
test('renders correctly', async () => {
|
||||
await ReactTestRenderer.act(() => {
|
||||
ReactTestRenderer.create(<App />);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user