Skip to content

fix: messages deepCopy mutates src arguments #1469

fix: messages deepCopy mutates src arguments

fix: messages deepCopy mutates src arguments #1469

Triggered via pull request September 13, 2024 10:10
Status Failure
Total duration 8m 44s
Artifacts

ci.yml

on: pull_request
Matrix: Build
Matrix: Lint
Matrix: Unit test
Matrix: E2E test
Fit to window
Zoom out
Zoom in

Annotations

20 errors
packages/vue-i18n-core/test/composer.test.ts > __i18n > deepCopy: packages/vue-i18n-core/test/composer.test.ts#L1703
AssertionError: expected { str: 'str_custom', …(6) } to deeply equal { str: 'str_custom', …(6) } - Expected + Received Object { "array1": Array [ "array1_custom", ], "array2": Array [ "array2_custom", ], - "array3": Array [ - "array3_custom", - ], + "array3": Object { + "0": "array3_custom", + "key1": "array3_messages", + }, "map1": Object { "key1": "key1_custom", "key2": "key2_messages", }, "map2": Object { "key1": "key1_custom", }, - "map3": Object { - "key1": "key1_custom", - }, + "map3": Array [ + "key1_messages", + ], "str": "str_custom", } ❯ packages/vue-i18n-core/test/composer.test.ts:1703:31
Unit test (macos-latest, 20)
Process completed with exit code 1.
packages/vue-i18n-core/test/composer.test.ts > __i18n > deepCopy: packages/vue-i18n-core/test/composer.test.ts#L1703
AssertionError: expected { str: 'str_custom', …(6) } to deeply equal { str: 'str_custom', …(6) } - Expected + Received Object { "array1": Array [ "array1_custom", ], "array2": Array [ "array2_custom", ], - "array3": Array [ - "array3_custom", - ], + "array3": Object { + "0": "array3_custom", + "key1": "array3_messages", + }, "map1": Object { "key1": "key1_custom", "key2": "key2_messages", }, "map2": Object { "key1": "key1_custom", }, - "map3": Object { - "key1": "key1_custom", - }, + "map3": Array [ + "key1_messages", + ], "str": "str_custom", } ❯ packages/vue-i18n-core/test/composer.test.ts:1703:31
Unit test (ubuntu-latest, 22)
Process completed with exit code 1.
Unit test (ubuntu-latest, 20)
The job was canceled because "macos-latest_20" failed.
packages/vue-i18n-core/test/composer.test.ts > __i18n > deepCopy: packages/vue-i18n-core/test/composer.test.ts#L1703
AssertionError: expected { str: 'str_custom', …(6) } to deeply equal { str: 'str_custom', …(6) } - Expected + Received Object { "array1": Array [ "array1_custom", ], "array2": Array [ "array2_custom", ], - "array3": Array [ - "array3_custom", - ], + "array3": Object { + "0": "array3_custom", + "key1": "array3_messages", + }, "map1": Object { "key1": "key1_custom", "key2": "key2_messages", }, "map2": Object { "key1": "key1_custom", }, - "map3": Object { - "key1": "key1_custom", - }, + "map3": Array [ + "key1_messages", + ], "str": "str_custom", } ❯ packages/vue-i18n-core/test/composer.test.ts:1703:31
Unit test (ubuntu-latest, 20)
Process completed with exit code 1.
Unit test (ubuntu-latest, 18.19)
The job was canceled because "macos-latest_20" failed.
packages/vue-i18n-core/test/composer.test.ts > __i18n > deepCopy: packages/vue-i18n-core/test/composer.test.ts#L1703
AssertionError: expected { str: 'str_custom', …(6) } to deeply equal { str: 'str_custom', …(6) } - Expected + Received Object { "array1": Array [ "array1_custom", ], "array2": Array [ "array2_custom", ], - "array3": Array [ - "array3_custom", - ], + "array3": Object { + "0": "array3_custom", + "key1": "array3_messages", + }, "map1": Object { "key1": "key1_custom", "key2": "key2_messages", }, "map2": Object { "key1": "key1_custom", }, - "map3": Object { - "key1": "key1_custom", - }, + "map3": Array [ + "key1_messages", + ], "str": "str_custom", } ❯ packages/vue-i18n-core/test/composer.test.ts:1703:31
Unit test (ubuntu-latest, 18.19)
Process completed with exit code 1.
Unit test (windows-latest, 20)
The job was canceled because "macos-latest_20" failed.
Unit test (windows-latest, 20)
The operation was canceled.
Unit test (windows-latest, 22)
The job was canceled because "macos-latest_20" failed.
Unit test (windows-latest, 22)
The operation was canceled.
Unit test (windows-latest, 18.19)
The job was canceled because "macos-latest_20" failed.
Unit test (windows-latest, 18.19)
The operation was canceled.
Unit test (macos-latest, 18.19)
The job was canceled because "macos-latest_20" failed.
Unit test (macos-latest, 18.19)
The operation was canceled.
Unit test (macos-latest, 22)
The job was canceled because "macos-latest_20" failed.
Unit test (macos-latest, 22)
The operation was canceled.