mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 21:43:55 -07:00
replace websocket with sockatrice
This commit is contained in:
parent
68050b56bc
commit
e2319c84db
218 changed files with 89 additions and 9100 deletions
|
|
@ -3,7 +3,7 @@ import { Provider } from 'react-redux';
|
|||
import { configureStore, Reducer } from '@reduxjs/toolkit';
|
||||
|
||||
import { WebClientContext } from '../hooks/useWebClient';
|
||||
import type { WebClient } from '../websocket';
|
||||
import type { WebClient } from '@app/websocket';
|
||||
import { createMockWebClient } from './mockWebClient';
|
||||
|
||||
// Minimal Provider wrapper for hook-only tests. Use this instead of
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export function createMockWebClient() {
|
|||
accountEdit: vi.fn(),
|
||||
accountPassword: vi.fn(),
|
||||
accountImage: vi.fn(),
|
||||
listUsers: vi.fn(),
|
||||
message: vi.fn(),
|
||||
},
|
||||
rooms: {
|
||||
joinRoom: vi.fn(),
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const testTheme = createTheme({
|
|||
});
|
||||
|
||||
import { WebClientContext } from '../hooks/useWebClient';
|
||||
import type { WebClient } from '../websocket';
|
||||
import type { WebClient } from '@app/websocket';
|
||||
import rootReducer from '../store/rootReducer';
|
||||
import { ToastProvider } from '../components/Toast/ToastContext';
|
||||
import { storeMiddlewareOptions } from '../store/store';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue