Refactor reactions / hand raised to use rxjs and start ordering tiles based on hand raised. #5492
Annotations
3 errors and 1 warning
src/reactions/useReactionsReader.test.tsx > handles a reaction:
src/utils/test.ts#L72
AssertionError: expected [ { frame: +0, …(1) }, …(2) ] to deeply equal [ { frame: +0, …(1) }, …(2) ]
- Expected
+ Received
Array [
Object {
"frame": 0,
"notification": Object {
"error": undefined,
"kind": "N",
"value": Object {},
},
},
Object {
"frame": 1,
"notification": Object {
"error": undefined,
"kind": "N",
"value": Object {
"@Carol:example.org:CCCC": Object {
"expireAfter": 1970-01-01T00:00:03.000Z,
"reactionOption": Object {
"alias": Array [
"hurray",
"success",
],
"emoji": "🎉",
"name": "party",
"sound": Object {
"mp3": "/src/sound/reactions/party.mp3",
"ogg": "/src/sound/reactions/party.ogg",
},
},
},
},
},
},
Object {
- "frame": 3001,
+ "frame": 3051,
"notification": Object {
"error": undefined,
"kind": "N",
"value": Object {},
},
},
]
❯ TestScheduler.assertDeepEqual src/utils/test.ts:72:25
❯ node_modules/rxjs/src/internal/testing/TestScheduler.ts:217:14
❯ TestScheduler.flush node_modules/rxjs/src/internal/testing/TestScheduler.ts:215:39
❯ TestScheduler.run node_modules/rxjs/src/internal/testing/TestScheduler.ts:679:12
❯ Module.withTestScheduler src/utils/test.ts:77:13
❯ src/reactions/useReactionsReader.test.tsx:264:3
|
src/reactions/useReactionsReader.test.tsx > that reactions cannot be spammed:
src/utils/test.ts#L72
AssertionError: expected [ { frame: +0, …(1) }, …(2) ] to deeply equal [ { frame: +0, …(1) }, …(2) ]
- Expected
+ Received
Array [
Object {
"frame": 0,
"notification": Object {
"error": undefined,
"kind": "N",
"value": Object {},
},
},
Object {
"frame": 1,
"notification": Object {
"error": undefined,
"kind": "N",
"value": Object {
"@Carol:example.org:CCCC": Object {
"expireAfter": 1970-01-01T00:00:03.000Z,
"reactionOption": Object {
"alias": Array [
"hurray",
"success",
],
"emoji": "🎉",
"name": "party",
"sound": Object {
"mp3": "/src/sound/reactions/party.mp3",
"ogg": "/src/sound/reactions/party.ogg",
},
},
},
},
},
},
Object {
- "frame": 3001,
+ "frame": 3051,
"notification": Object {
"error": undefined,
"kind": "N",
"value": Object {},
},
},
]
❯ TestScheduler.assertDeepEqual src/utils/test.ts:72:25
❯ node_modules/rxjs/src/internal/testing/TestScheduler.ts:217:14
❯ TestScheduler.flush node_modules/rxjs/src/internal/testing/TestScheduler.ts:215:39
❯ TestScheduler.run node_modules/rxjs/src/internal/testing/TestScheduler.ts:679:12
❯ Module.withTestScheduler src/utils/test.ts:77:13
❯ src/reactions/useReactionsReader.test.tsx:445:3
|
Run vitest tests
Process completed with exit code 1.
|
Run vitest tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|