added vitest to chat.jsx #2277
pull-request.yml
on: pull_request
Performs linting, formatting, type-checking, checking for different source and target branch
59s
Check for eslint-disable
4s
Checks if sensitive files have been changed without authorization
8s
Checks if number of files changed is acceptable
5s
Runs Introspection on the GitHub talawa-api repo on the schema.graphql file
19s
Check Target Branch
0s
Check if Talawa Admin app starts (No Docker)
0s
Check if Talawa Admin app starts in Docker
0s
Annotations
9 errors and 7 warnings
Checks if sensitive files have been changed without authorization
Process completed with exit code 1.
|
Runs Introspection on the GitHub talawa-api repo on the schema.graphql file
Process completed with exit code 1.
|
Unhandled error:
src/components/UserPortal/ChatRoom/ChatRoom.tsx#L207
TypeError: Cannot read properties of undefined (reading '_id')
❯ Object.onData src/components/UserPortal/ChatRoom/ChatRoom.tsx:207:15
❯ Object.next node_modules/@apollo/client/react/hooks/useSubscription.js:184:40
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ Object.next node_modules/zen-observable/lib/Observable.js:327:22
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
This error originated in "src/screens/UserPortal/Chat/Chat.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "Screen should be rendered properly". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
src/components/UserPortal/ChatRoom/ChatRoom.tsx#L207
TypeError: Cannot read properties of undefined (reading '_id')
❯ Object.onData src/components/UserPortal/ChatRoom/ChatRoom.tsx:207:15
❯ Object.next node_modules/@apollo/client/react/hooks/useSubscription.js:184:40
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ Object.next node_modules/zen-observable/lib/Observable.js:327:22
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
This error originated in "src/screens/UserPortal/Chat/Chat.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "User is able to select a contact". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
src/components/UserPortal/ChatRoom/ChatRoom.tsx#L207
TypeError: Cannot read properties of undefined (reading '_id')
❯ Object.onData src/components/UserPortal/ChatRoom/ChatRoom.tsx:207:15
❯ Object.next node_modules/@apollo/client/react/hooks/useSubscription.js:184:40
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ Object.next node_modules/zen-observable/lib/Observable.js:327:22
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
This error originated in "src/screens/UserPortal/Chat/Chat.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create new direct chat". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
src/components/UserPortal/ChatRoom/ChatRoom.tsx#L207
TypeError: Cannot read properties of undefined (reading '_id')
❯ Object.onData src/components/UserPortal/ChatRoom/ChatRoom.tsx:207:15
❯ Object.next node_modules/@apollo/client/react/hooks/useSubscription.js:184:40
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ Object.next node_modules/zen-observable/lib/Observable.js:327:22
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
This error originated in "src/screens/UserPortal/Chat/Chat.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create new group chat". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
src/components/UserPortal/ChatRoom/ChatRoom.tsx#L207
TypeError: Cannot read properties of undefined (reading '_id')
❯ Object.onData src/components/UserPortal/ChatRoom/ChatRoom.tsx:207:15
❯ Object.next node_modules/@apollo/client/react/hooks/useSubscription.js:184:40
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ Object.next node_modules/zen-observable/lib/Observable.js:327:22
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
This error originated in "src/screens/UserPortal/Chat/Chat.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "sidebar". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Unhandled error:
src/components/UserPortal/ChatRoom/ChatRoom.tsx#L207
TypeError: Cannot read properties of undefined (reading '_id')
❯ Object.onData src/components/UserPortal/ChatRoom/ChatRoom.tsx:207:15
❯ Object.next node_modules/@apollo/client/react/hooks/useSubscription.js:184:40
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
❯ onNotify node_modules/zen-observable/lib/Observable.js:179:3
❯ SubscriptionObserver.next node_modules/zen-observable/lib/Observable.js:235:7
❯ Object.next node_modules/zen-observable/lib/Observable.js:327:22
❯ notifySubscription node_modules/zen-observable/lib/Observable.js:135:18
This error originated in "src/screens/UserPortal/Chat/Chat.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "Testing sidebar when the screen size is less than or equal to 820px". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Test Application
Process completed with exit code 1.
|
Check Target Branch
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Check for eslint-disable
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Checks if number of files changed is acceptable
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Checks if sensitive files have been changed without authorization
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Runs Introspection on the GitHub talawa-api repo on the schema.graphql file
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Performs linting, formatting, type-checking, checking for different source and target branch
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test Application
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|