Jest update v26.6.3 -> v29.5.1
Summary: ^ Basically, update Jest and fix any raised issues. Mainly: - Update necessary dependencies - Update snapshots - `useFakeTimers` caused a few issues which meant that the way we hook into the performance object had to be tweaked. The main code change is: `//fbsource/xplat/sonar/desktop/scripts/jest-setup-after.tsx` - `mocked` -> `jest.mocked` Changelog: Update Jest to v29.5.1 Reviewed By: antonk52 Differential Revision: D46319818 fbshipit-source-id: d218ca8f7e43abac6b00844953ddeb7f4e1010a2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
94cb8935b2
commit
6430403da0
@@ -47,11 +47,11 @@ test('Reducer correctly adds initial chunk', () => {
|
||||
});
|
||||
|
||||
expect(instance.partialResponses.get()['1']).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
"followupChunks": Object {},
|
||||
"initialResponse": Object {
|
||||
{
|
||||
"followupChunks": {},
|
||||
"initialResponse": {
|
||||
"data": "hello",
|
||||
"headers": Array [],
|
||||
"headers": [],
|
||||
"id": "1",
|
||||
"index": 0,
|
||||
"insights": null,
|
||||
@@ -76,8 +76,8 @@ test('Reducer correctly adds followup chunk', () => {
|
||||
data: 'hello',
|
||||
});
|
||||
expect(instance.partialResponses.get()['1']).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
"followupChunks": Object {
|
||||
{
|
||||
"followupChunks": {
|
||||
"1": "hello",
|
||||
},
|
||||
}
|
||||
@@ -113,13 +113,13 @@ test('Reducer correctly combines initial response and followup chunk', () => {
|
||||
totalChunks: 2,
|
||||
});
|
||||
expect(instance.partialResponses.get()).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
"1": Object {
|
||||
"followupChunks": Object {},
|
||||
"initialResponse": Object {
|
||||
{
|
||||
"1": {
|
||||
"followupChunks": {},
|
||||
"initialResponse": {
|
||||
"data": "aGVs",
|
||||
"headers": Array [
|
||||
Object {
|
||||
"headers": [
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "text/plain",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user