perf: use Shiki shorthand #3202
Annotations
12 errors
test/transform-all.test.ts > transform-all:
packages/slidev/node/syntax/transform/magic-move.ts#L17
TypeError: Cannot destructure property 'codeToTokens' of 'ctx.options.utils.shiki' as it is undefined.
❯ transformMagicMove packages/slidev/node/syntax/transform/magic-move.ts:17:11
❯ test/transform-all.test.ts:49:5
|
test/transform-magic-move.test.ts > basic:
test/transform-magic-move.test.ts#L34
Error: Snapshot `basic 1` mismatched
- Expected
+ Received
"
Some text before
- <ShikiMagicMove v-bind="{}" steps-lz="NobwRAxg9gJgpmAXGA9CgBAFQBYEsDO6B6AhutPOgEYA2UEA1gDoB20L+UNcAdHQOYAKAOQAJODToAadAGUaueADcAhMICUYKWGwl82JGAC2AeRMB3AB4MSJywCstYAC5QGcDklCQoLZx+dDNCw8QmIyCjhqOkYnKAAzePw4QMQABm1oOgAnQwBiADYARgKAUQAOcqd432dZZwBPbiQMsHcGw1MLa1sHAFo0sABfKXB2fz9DVjjE5NSAJgBmbXbOsysbO3s+ouHRnz8Aw3ZOZu0EpJSkeYAWTK4oXOQ8gBFyl9LSgE5q2vqmhDpFZwDrILobXrbeZ7Ma1I7IHgzS6pRZFe45fKlADCpQAYribr8/P9mkC2iC1t1Nv1FjCDhNUmABEi5khFvN0Y98pUsWkXoNtDViY1Sa1VmD1j0tn1CSNYYdJshBCyrohFgBWTlPMCvd6fL74ol1EWAsUUiVUyF9dV08bwsDCFUogpazE4/GEwV/E0tYGg4yS6nbAq2uGKsDiSRQGTyRRwVROtkAdldzwAgosAEIVLFGkmmv2UiHSpOhhWMx3nWaq9VonwY57YvEEvM+snigOW6VVOX0+2aKvIpDqjn1rnPN4fb6Gr3CgG+8n+8FS/o/Xt28PTQesxDq5aLosr7ZFQZDAC62gULDgADkAK5GKhwbL4JDxEg0ZLaKj8fLzOCLDcNxpIk1S/s8MDlPAcBfKB2jONgcBGLeJDIYYLCPDATg0CQLDgS4r7rrAgJMik6DIfg+AkPwUQALzoGIEjSHICjKGoTi6Pohi4LIADSvFQNg5gMIsJBOK47ieIg3gboy3CBNuqqtFk446uURRpkUWK7LOxrzu25pgDx/GCcJokDGWDKGOgiZqqmOqTvqM5gEKemioWyDGQJQkiSQOyWfaFFUTRtl3GO2q6lOPy6fmC4dl5pm+X00JEeW1m2UUdYqRFjnTrirb6Wa/oJT55m0qlVnILRGWjtl3IaVpOkud6hUeUZfHeWZfmyvssnpYpqRFPudUTnqeUFe5B6eR1iXmTaFX2pWYAXDuRRhSNOpNh6E0FlN7UmaVfkhgt4aRsxsZsRlmrhfkGbZuUuYxW2RXcTNh19KWJ0VrZ8xfPZeRbS2T2tXtJVdX0Pa9WGjJbst1Yoi900HeDa4XkyuDXvej7Pq+iDvp+cDfvheT/oBwFwS5xOQdBsHxOJiHITeqEkRh2RYZeuH4c4hFnkAA===" :step-ranges='[[],[]]' />
+ <ShikiMagicMove v-bind="{}" steps-lz="N4XyA===" :step-ranges='[[],[]]' />
Some text after
"
❯ test/transform-magic-move.test.ts:34:6
|
test/transform-magic-move.test.ts > hyphenated code language:
test/transform-magic-move.test.ts#L74
Error: Snapshot `hyphenated code language 1` mismatched
- Expected
+ Received
"
Some text before
- <ShikiMagicMove v-bind="{}" steps-lz="NobwRAxg9gJgpmAXJKA7AzlANnAdFqAcwAoByACTiwIBoACAQVUIFcsBDAJwEJSBKMDTAALdumFIwABwBeABgBCAMQCcCgMwAtAG6CwAFygBrOBiSgUqfaf2ToGbAiFQAZi/RxbiOUOgFOkgDEACIAHMEAohEqei5o+gDK+gCeOEg+YCbJkrKKqho6ALRyYAC+NOD21laSuHqu7p5IAOy+2FAByIERAMIRSkoALLHxSakI3kJZOfLKalrahQCMZRWW1V5gBIT1bh5eoW3+QaGhPXLBJUJxVmNpk5lw2ci5cwWLAEyrlfE2ksS7RpeJZLI4dIJhSLRAYjW4pe4ZaYvWb5BaFdTfdZ/ZCkQH7JBLD5gzpgbp9AbDa6jeETRFPGZ5eZFYblH5WbFgSjUKD0JisDg8PFNRBLdTEoIMdQKCJnWGJGnpKb05GM96FACsmKqHNxzj2wo+hxQxy6vX6Qzld1pSue0hRTMWADYtb8asgBHqgUgPipxV1IVEVDCqXDxorHrbXqiis0Xey3WAADqoIVedR0yP2tWhMoAXSEWAAlqg4AA5FgAWwARnBOOgkC52FgPEIqzsuh84OpBoM5G5Yu3STBQvA4Cp+0J9MI4BWy+xZ5JUB0YHoOMxJOxmGwuIV9PXWSh4HY0JgcPgiGQubRGFuBXRAh9eB6RGIJMgAGpLBgQbRLACKAAaACyOaTsYpj1ogFjagm9ink4YANPiDx+OC/rhIGloKg8SJgJ+36/oBIHFHGGy1KmLR+qSZoUlhYY4cqeFfj+/7AaEyykRy2wUYgRqoSSgSnOclx0QiNqSPhLFEexXwHjBmwAp6yEglRIQYdCSiidaEYScxhFseinEJrqiH6sCRLGmh1HkhaIbyvRGa6QRrHESyazyZIV48je/JcPej48aKqmStKsp2Va4a4ZJ+nEZqcmupsJlIcK6igpZAk0bZYA3PZYk6R+ekuexzrxfGmzPslaYWfxELqUGmnhdhjkFc50mFLGpVkcgyY8eoYr5UxrUGTmpT5lsxZlpWNZ1g2TYtmAbZBJ23a9hO2WDoEw6juOLh6FOM5zguyBLpwK4Fpug4XdunC7vuuZAA=" :step-ranges='[[],[]]' />
+ <ShikiMagicMove v-bind="{}" steps-lz="N4XyA===" :step-ranges='[[],[]]' />
Some text after
"
❯ test/transform-magic-move.test.ts:74:6
|
test (lts/*, macos-latest)
Process completed with exit code 1.
|
test/transform-all.test.ts > transform-all:
packages/slidev/node/syntax/transform/magic-move.ts#L17
TypeError: Cannot destructure property 'codeToTokens' of 'ctx.options.utils.shiki' as it is undefined.
❯ transformMagicMove packages/slidev/node/syntax/transform/magic-move.ts:17:11
❯ test/transform-all.test.ts:49:5
|
test/transform-magic-move.test.ts > basic:
test/transform-magic-move.test.ts#L34
Error: Snapshot `basic 1` mismatched
- Expected
+ Received
"
Some text before
- <ShikiMagicMove v-bind="{}" steps-lz="NobwRAxg9gJgpmAXGA9Cg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Nh19KWJ0VrZ8xfPZeRbS2T2tXtJVdX0Pa9WGjJbst1Yoi900HeDa4XkyuDXvej7Pq+iDvp+cDfvheT/oBwFwS5xOQdBsHxOJiHITeqEkRh2RYZeuH4c4hFnkAA===" :step-ranges='[[],[]]' />
+ <ShikiMagicMove v-bind="{}" steps-lz="N4XyA===" :step-ranges='[[],[]]' />
Some text after
"
❯ test/transform-magic-move.test.ts:34:6
|
test/transform-magic-move.test.ts > hyphenated code language:
test/transform-magic-move.test.ts#L74
Error: Snapshot `hyphenated code language 1` mismatched
- Expected
+ Received
"
Some text before
- <ShikiMagicMove v-bind="{}" steps-lz="NobwRAxg9gJgpmAXJKA7AzlANnAdFqAcwAoByACTiwIBoACAQVUIFcsBDAJwEJSBKMDTAALdumFIwABwBeABgBCAMQCcCgMwAtAG6CwAFygBrOBiSgUqfaf2ToGbAiFQAZi/RxbiOUOgFOkgDEACIAHMEAohEqei5o+gDK+gCeOEg+YCbJkrKKqho6ALRyYAC+NOD21laSuHqu7p5IAOy+2FAByIERAMIRSkoALLHxSakI3kJZOfLKalrahQCMZRWW1V5gBIT1bh5eoW3+QaGhPXLBJUJxVmNpk5lw2ci5cwWLAEyrlfE2ksS7RpeJZLI4dIJhSLRAYjW4pe4ZaYvWb5BaFdTfdZ/ZCkQH7JBLD5gzpgbp9AbDa6jeETRFPGZ5eZFYblH5WbFgSjUKD0JisDg8PFNRBLdTEoIMdQKCJnWGJGnpKb05GM96FACsmKqHNxzj2wo+hxQxy6vX6Qzld1pSue0hRTMWADYtb8asgBHqgUgPipxV1IVEVDCqXDxorHrbXqiis0Xey3WAADqoIVedR0yP2tWhMoAXSEWAAlqg4AA5FgAWwARnBOOgkC52FgPEIqzsuh84OpBoM5G5Yu3STBQvA4Cp+0J9MI4BWy+xZ5JUB0YHoOMxJOxmGwuIV9PXWSh4HY0JgcPgiGQubRGFuBXRAh9eB6RGIJMgAGpLBgQbRLACKAAaACyOaTsYpj1ogFjagm9ink4YANPiDx+OC/rhIGloKg8SJgJ+36/oBIHFHGGy1KmLR+qSZoUlhYY4cqeFfj+/7AaEyykRy2wUYgRqoSSgSnOclx0QiNqSPhLFEexXwHjBmwAp6yEglRIQYdCSiidaEYScxhFseinEJrqiH6sCRLGmh1HkhaIbyvRGa6QRrHESyazyZIV48je/JcPej48aKqmStKsp2Va4a4ZJ+nEZqcmupsJlIcK6igpZAk0bZYA3PZYk6R+ekuexzrxfGmzPslaYWfxELqUGmnhdhjkFc50mFLGpVkcgyY8eoYr5UxrUGTmpT5lsxZlpWNZ1g2TYtmAbZBJ23a9hO2WDoEw6juOLh6FOM5zguyBLpwK4Fpug4XdunC7vuuZAA=" :step-ranges='[[],[]]' />
+ <ShikiMagicMove v-bind="{}" steps-lz="N4XyA===" :step-ranges='[[],[]]' />
Some text after
"
❯ test/transform-magic-move.test.ts:74:6
|
test (lts/*, windows-latest)
Process completed with exit code 1.
|
test/transform-all.test.ts > transform-all:
packages/slidev/node/syntax/transform/magic-move.ts#L17
TypeError: Cannot destructure property 'codeToTokens' of 'ctx.options.utils.shiki' as it is undefined.
❯ transformMagicMove packages/slidev/node/syntax/transform/magic-move.ts:17:11
❯ test/transform-all.test.ts:49:5
|
test/transform-magic-move.test.ts > basic:
test/transform-magic-move.test.ts#L34
Error: Snapshot `basic 1` mismatched
- Expected
+ Received
"
Some text before
- <ShikiMagicMove v-bind="{}" steps-lz="NobwRAxg9gJgpmAXGA9CgBAFQBYEsDO6B6AhutPOgEYA2UEA1gDoB20L+UNcAdHQOYAKAOQAJODToAadAGUaueADcAhMICUYKWGwl82JGAC2AeRMB3AB4MSJywCstYAC5QGcDklCQoLZx+dDNCw8QmIyCjhqOkYnKAAzePw4QMQABm1oOgAnQwBiADYARgKAUQAOcqd432dZZwBPbiQMsHcGw1MLa1sHAFo0sABfKXB2fz9DVjjE5NSAJgBmbXbOsysbO3s+ouHRnz8Aw3ZOZu0EpJSkeYAWTK4oXOQ8gBFyl9LSgE5q2vqmhDpFZwDrILobXrbeZ7Ma1I7IHgzS6pRZFe45fKlADCpQAYribr8/P9mkC2iC1t1Nv1FjCDhNUmABEi5khFvN0Y98pUsWkXoNtDViY1Sa1VmD1j0tn1CSNYYdJshBCyrohFgBWTlPMCvd6fL74ol1EWAsUUiVUyF9dV08bwsDCFUogpazE4/GEwV/E0tYGg4yS6nbAq2uGKsDiSRQGTyRRwVROtkAdldzwAgosAEIVLFGkmmv2UiHSpOhhWMx3nWaq9VonwY57YvEEvM+snigOW6VVOX0+2aKvIpDqjn1rnPN4fb6Gr3CgG+8n+8FS/o/Xt28PTQesxDq5aLosr7ZFQZDAC62gULDgADkAK5GKhwbL4JDxEg0ZLaKj8fLzOCLDcNxpIk1S/s8MDlPAcBfKB2jONgcBGLeJDIYYLCPDATg0CQLDgS4r7rrAgJMik6DIfg+AkPwUQALzoGIEjSHICjKGoTi6Pohi4LIADSvFQNg5gMIsJBOK47ieIg3gboy3CBNuqqtFk446uURRpkUWK7LOxrzu25pgDx/GCcJokDGWDKGOgiZqqmOqTvqM5gEKemioWyDGQJQkiSQOyWfaFFUTRtl3GO2q6lOPy6fmC4dl5pm+X00JEeW1m2UUdYqRFjnTrirb6Wa/oJT55m0qlVnILRGWjtl3IaVpOkud6hUeUZfHeWZfmyvssnpYpqRFPudUTnqeUFe5B6eR1iXmTaFX2pWYAXDuRRhSNOpNh6E0FlN7UmaVfkhgt4aRsxsZsRlmrhfkGbZuUuYxW2RXcTNh19KWJ0VrZ8xfPZeRbS2T2tXtJVdX0Pa9WGjJbst1Yoi900HeDa4XkyuDXvej7Pq+iDvp+cDfvheT/oBwFwS5xOQdBsHxOJiHITeqEkRh2RYZeuH4c4hFnkAA===" :step-ranges='[[],[]]' />
+ <ShikiMagicMove v-bind="{}" steps-lz="N4XyA===" :step-ranges='[[],[]]' />
Some text after
"
❯ test/transform-magic-move.test.ts:34:6
|
test/transform-magic-move.test.ts > hyphenated code language:
test/transform-magic-move.test.ts#L74
Error: Snapshot `hyphenated code language 1` mismatched
- Expected
+ Received
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O2WDoEw6juOLh6FOM5zguyBLpwK4Fpug4XdunC7vuuZAA=" :step-ranges='[[],[]]' />
+ <ShikiMagicMove v-bind="{}" steps-lz="N4XyA===" :step-ranges='[[],[]]' />
Some text after
"
❯ test/transform-magic-move.test.ts:74:6
|
test (lts/*, ubuntu-latest)
Process completed with exit code 1.
|