fix(LS): rename where map doesn't exist #15524
Annotations
7 errors
|
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
|
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
|
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
|
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
|
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
|
|
This job was cancelled
Loading