Skip to content

fix(LS): rename where map doesn't exist #15524

fix(LS): rename where map doesn't exist

fix(LS): rename where map doesn't exist #15524

Triggered via pull request July 16, 2024 09:31
Status Failure
Total duration 51s
Artifacts

continuous-integration.yml

on: pull_request
Matrix: Tests + Shellcheck
Fit to window
Zoom out
Zoom in

Annotations

15 errors
src/__test__/rename/single-file.test.ts > Rename > Field not referenced in index block: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameFieldLargeSchema.prisma": Array [ Object { "newText": "AlbumFoo", "range": Object { "end": Object { "character": 7, "line": 136, }, "start": Object { "character": 2, "line": 136, }, }, }, Object { "newText": " @Map(\"Album\")", "range": Object { "end": Object { - "character": 33, + "character": 34, "line": 136, }, "start": Object { - "character": 33, + "character": 34, "line": 136, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:358:5
src/__test__/rename/single-file.test.ts > Rename > Field referenced in @@id and @relation attributes: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameFields.prisma": Array [ Object { "newText": "publisherId", "range": Object { "end": Object { "character": 12, "line": 4, }, "start": Object { "character": 4, "line": 4, }, }, }, Object { "newText": " @Map(\"authorId\")", "range": Object { "end": Object { - "character": 16, + "character": 17, "line": 4, }, "start": Object { - "character": 16, + "character": 17, "line": 4, }, }, }, Object { "newText": "publisherId", "range": Object { "end": Object { "character": 49, "line": 3, }, "start": Object { "character": 41, "line": 3, }, }, }, Object { "newText": "publisherId", "range": Object { "end": Object { "character": 18, "line": 5, }, "start": Object { "character": 10, "line": 5, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:405:5
src/__test__/rename/single-file.test.ts > Rename > Field referenced in @@index attribute: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameFields.prisma": Array [ Object { "newText": "headline", "range": Object { "end": Object { "character": 7, "line": 17, }, "start": Object { "character": 2, "line": 17, }, }, }, Object { "newText": " @Map(\"title\")", "range": Object { "end": Object { - "character": 16, + "character": 17, "line": 17, }, "start": Object { - "character": 16, + "character": 17, "line": 17, }, }, }, Object { "newText": "headline", "range": Object { "end": Object { "character": 16, "line": 19, }, "start": Object { "character": 11, "line": 19, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:447:5
src/__test__/rename/single-file.test.ts > Rename > Field referenced in @@unique attribute and @relation attribute: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameFields.prisma": Array [ Object { "newText": "humanoidId", "range": Object { "end": Object { "character": 9, "line": 25, }, "start": Object { "character": 2, "line": 25, }, }, }, Object { "newText": " @Map(\"humanId\")", "range": Object { "end": Object { - "character": 13, + "character": 14, "line": 25, }, "start": Object { - "character": 13, + "character": 14, "line": 25, }, }, }, Object { "newText": "humanoidId", "range": Object { "end": Object { "character": 46, "line": 24, }, "start": Object { "character": 39, "line": 24, }, }, }, Object { "newText": "humanoidId", "range": Object { "end": Object { "character": 19, "line": 28, }, "start": Object { "character": 12, "line": 28, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:481:5
src/__test__/rename/single-file.test.ts > Rename > Enum Values: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameEnum.prisma": Array [ Object { "newText": "A_VARIANT_WITHOUT_UNDERSCORES", "range": Object { "end": Object { "character": 28, "line": 8, }, "start": Object { "character": 2, "line": 8, }, }, }, Object { "newText": " @Map(\"A_VARIANT_WITH_UNDERSCORES\")", "range": Object { "end": Object { - "character": 27, + "character": 28, "line": 8, }, "start": Object { - "character": 27, + "character": 28, "line": 8, }, }, }, Object { "newText": "@default(A_VARIANT_WITHOUT_UNDERSCORES)", "range": Object { "end": Object { "character": 48, "line": 2, }, "start": Object { "character": 12, "line": 2, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:556:5
Tests + Shellcheck (ubuntu-latest)
Process completed with exit code 1.
Tests + Shellcheck (windows-latest)
The job was canceled because "ubuntu-latest" failed.
Tests + Shellcheck (windows-latest)
The operation was canceled.
Tests + Shellcheck (macos-latest)
The job was canceled because "ubuntu-latest" failed.
src/__test__/rename/single-file.test.ts > Rename > Field not referenced in index block: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameFieldLargeSchema.prisma": Array [ Object { "newText": "AlbumFoo", "range": Object { "end": Object { "character": 7, "line": 136, }, "start": Object { "character": 2, "line": 136, }, }, }, Object { "newText": " @Map(\"Album\")", "range": Object { "end": Object { - "character": 33, + "character": 34, "line": 136, }, "start": Object { - "character": 33, + "character": 34, "line": 136, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:358:5
src/__test__/rename/single-file.test.ts > Rename > Field referenced in @@id and @relation attributes: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameFields.prisma": Array [ Object { "newText": "publisherId", "range": Object { "end": Object { "character": 12, "line": 4, }, "start": Object { "character": 4, "line": 4, }, }, }, Object { "newText": " @Map(\"authorId\")", "range": Object { "end": Object { - "character": 16, + "character": 17, "line": 4, }, "start": Object { - "character": 16, + "character": 17, "line": 4, }, }, }, Object { "newText": "publisherId", "range": Object { "end": Object { "character": 49, "line": 3, }, "start": Object { "character": 41, "line": 3, }, }, }, Object { "newText": "publisherId", "range": Object { "end": Object { "character": 18, "line": 5, }, "start": Object { "character": 10, "line": 5, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:405:5
src/__test__/rename/single-file.test.ts > Rename > Field referenced in @@index attribute: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameFields.prisma": Array [ Object { "newText": "headline", "range": Object { "end": Object { "character": 7, "line": 17, }, "start": Object { "character": 2, "line": 17, }, }, }, Object { "newText": " @Map(\"title\")", "range": Object { "end": Object { - "character": 16, + "character": 17, "line": 17, }, "start": Object { - "character": 16, + "character": 17, "line": 17, }, }, }, Object { "newText": "headline", "range": Object { "end": Object { "character": 16, "line": 19, }, "start": Object { "character": 11, "line": 19, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:447:5
src/__test__/rename/single-file.test.ts > Rename > Field referenced in @@unique attribute and @relation attribute: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameFields.prisma": Array [ Object { "newText": "humanoidId", "range": Object { "end": Object { "character": 9, "line": 25, }, "start": Object { "character": 2, "line": 25, }, }, }, Object { "newText": " @Map(\"humanId\")", "range": Object { "end": Object { - "character": 13, + "character": 14, "line": 25, }, "start": Object { - "character": 13, + "character": 14, "line": 25, }, }, }, Object { "newText": "humanoidId", "range": Object { "end": Object { "character": 46, "line": 24, }, "start": Object { "character": 39, "line": 24, }, }, }, Object { "newText": "humanoidId", "range": Object { "end": Object { "character": 19, "line": 28, }, "start": Object { "character": 12, "line": 28, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:481:5
src/__test__/rename/single-file.test.ts > Rename > Enum Values: packages/language-server/src/__test__/rename/single-file.test.ts#L24
AssertionError: expected { changes: { …(1) } } to strictly equal { changes: { …(1) } } - Expected + Received Object { "changes": Object { "file:///rename/renameEnum.prisma": Array [ Object { "newText": "A_VARIANT_WITHOUT_UNDERSCORES", "range": Object { "end": Object { "character": 28, "line": 8, }, "start": Object { "character": 2, "line": 8, }, }, }, Object { "newText": " @Map(\"A_VARIANT_WITH_UNDERSCORES\")", "range": Object { "end": Object { - "character": 27, + "character": 28, "line": 8, }, "start": Object { - "character": 27, + "character": 28, "line": 8, }, }, }, Object { "newText": "@default(A_VARIANT_WITHOUT_UNDERSCORES)", "range": Object { "end": Object { "character": 48, "line": 2, }, "start": Object { "character": 12, "line": 2, }, }, }, ], }, } ❯ assertRename src/__test__/rename/single-file.test.ts:24:24 ❯ src/__test__/rename/single-file.test.ts:556:5
Tests + Shellcheck (macos-latest)
The operation was canceled.